projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
autofs: switch to __vfs_write()
[firefly-linux-kernel-4.4.55.git]
/
fs
/
autofs4
/
autofs_i.h
diff --git
a/fs/autofs4/autofs_i.h
b/fs/autofs4/autofs_i.h
index 8e98cf954babb8944a32fdc58fd3c38760933a5a..d10e619632ab48b30390062455eef4b543b7c183 100644
(file)
--- 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;