diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-03 21:07:48 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-12 04:29:37 +0200 |
commit | a35fb914ae62a58ca7519778fffac722c6ae255f (patch) | |
tree | 4247bf8db32b4433c9f5c76c512fdc52d6f4cf93 /fs/autofs4/autofs_i.h | |
parent | new helper: __vfs_write() (diff) | |
download | linux-a35fb914ae62a58ca7519778fffac722c6ae255f.tar.xz linux-a35fb914ae62a58ca7519778fffac722c6ae255f.zip |
autofs: switch to __vfs_write()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/autofs4/autofs_i.h')
-rw-r--r-- | fs/autofs4/autofs_i.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 8e98cf954bab..d10e619632ab 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h @@ -213,7 +213,7 @@ void autofs4_clean_ino(struct autofs_info *); 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; |