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: Christoph Hellwig <hch@lst.de>
Acked-by: Ian Kent <raven@themaw.net>
This commit is contained in:
Christoph Hellwig 2020-05-13 08:45:59 +02:00
parent 97c7990c4b
commit 13c164b1a1
1 changed files with 1 additions and 1 deletions

View File

@ -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;