mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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:
parent
97c7990c4b
commit
13c164b1a1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user