commit | a35fb914ae62a58ca7519778fffac722c6ae255f | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Fri Apr 03 15:07:48 2015 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sat Apr 11 22:29:37 2015 -0400 |
tree | 4247bf8db32b4433c9f5c76c512fdc52d6f4cf93 | |
parent | 493c84c0722ac991a96df2fd6c7798b2126b626c [diff] [blame] |
autofs: switch to __vfs_write() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 8e98cf9..d10e619 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h
@@ -213,7 +213,7 @@ static inline int autofs_prepare_pipe(struct file *pipe) { - if (!pipe->f_op->write) + if (!(pipe->f_mode & FMODE_CAN_WRITE)) return -EINVAL; if (!S_ISFIFO(file_inode(pipe)->i_mode)) return -EINVAL;