Thread (18 messages) 18 messages, 3 authors, 2020-05-20
STALE2201d

[PATCH 02/14] autofs: switch to kernel_write

From: Christoph Hellwig <hch@lst.de>
Date: 2020-05-13 06:57:09
Also in: linux-fsdevel, lkml, netfilter-devel
Subsystem: filesystems (vfs and infrastructure), kernel automounter, the rest · Maintainers: Alexander Viro, Christian Brauner, Ian Kent, Linus Torvalds

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>
---
 fs/autofs/waitq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c
index b04c528b19d34..74c886f7c51cb 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;
-- 
2.26.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help