projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97c7990
)
autofs: switch to kernel_write
author
Christoph Hellwig
<hch@lst.de>
Wed, 13 May 2020 06:45:59 +0000
(08:45 +0200)
committer
Christoph Hellwig
<hch@lst.de>
Wed, 8 Jul 2020 06:27:56 +0000
(08:27 +0200)
While pipes don't really need sb_writers projection, __kernel_write is an
interface better kept private, and the additional rw_verify_area does not
hurt here.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ian Kent <raven@themaw.net>
fs/autofs/waitq.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/autofs/waitq.c
b/fs/autofs/waitq.c
index b04c528b19d3425373286ec6e3c78e4eeee3c9cd..74c886f7c51cbe25334d38a9c57fcb2695f05bd4 100644
(file)
--- a/
fs/autofs/waitq.c
+++ b/
fs/autofs/waitq.c
@@
-53,7
+53,7
@@
static int autofs_write(struct autofs_sb_info *sbi,
mutex_lock(&sbi->pipe_mutex);
while (bytes) {
- wr =
__
kernel_write(file, data, bytes, &file->f_pos);
+ wr = kernel_write(file, data, bytes, &file->f_pos);
if (wr <= 0)
break;
data += wr;