Skip to content

Commit

Permalink
autofs: switch to kernel_write
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Ian Kent <[email protected]>
  • Loading branch information
Christoph Hellwig committed Jul 8, 2020
1 parent 97c7990 commit 13c164b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/autofs/waitq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 13c164b

Please sign in to comment.