X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fautofs4%2Fautofs_i.h;h=4218e26df916245818272785203358b5cd8a130f;hb=baa40671d3e3b590a33b2c0e022db61cbebf5c00;hp=3f1128b37e462cd3ef65560137e2194fe816990e;hpb=296b60109e0a2dfae4d22b393744634ca6322822;p=~andy%2Flinux diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 3f1128b37e4..4218e26df91 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h @@ -122,6 +122,7 @@ struct autofs_sb_info { spinlock_t lookup_lock; struct list_head active_list; struct list_head expiring_list; + struct rcu_head rcu; }; static inline struct autofs_sb_info *autofs4_sbi(struct super_block *sb) @@ -271,7 +272,7 @@ void autofs4_clean_ino(struct autofs_info *); static inline int autofs_prepare_pipe(struct file *pipe) { - if (!pipe->f_op || !pipe->f_op->write) + if (!pipe->f_op->write) return -EINVAL; if (!S_ISFIFO(file_inode(pipe)->i_mode)) return -EINVAL;