Commit 13c164b1 authored by Christoph Hellwig's avatar Christoph Hellwig

autofs: switch to kernel_write

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: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarIan Kent <raven@themaw.net>
parent 97c7990c
...@@ -53,7 +53,7 @@ static int autofs_write(struct autofs_sb_info *sbi, ...@@ -53,7 +53,7 @@ static int autofs_write(struct autofs_sb_info *sbi,
mutex_lock(&sbi->pipe_mutex); mutex_lock(&sbi->pipe_mutex);
while (bytes) { while (bytes) {
wr = __kernel_write(file, data, bytes, &file->f_pos); wr = kernel_write(file, data, bytes, &file->f_pos);
if (wr <= 0) if (wr <= 0)
break; break;
data += wr; data += wr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment