summaryrefslogtreecommitdiff
path: root/fs/autofs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-05-13 08:45:59 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-08 08:27:56 +0200
commit13c164b1a186dfe17d104d9638b86a06be1e40bf (patch)
tree35036080dec6a8c52dec11de3b8b8cd9444f7892 /fs/autofs
parent97c7990c4bf6423578f5b7317027ff8b6fb7cdf6 (diff)
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>
Diffstat (limited to 'fs/autofs')
-rw-r--r--fs/autofs/waitq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c
index b04c528b19d3..74c886f7c51c 100644
--- 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;