Message ID | 20240318112542.18863-5-opensource@zhasha.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2,1/4] fs/9p: only translate RWX permissions for plain 9P2000 | expand |
diff --git a/fs/9p/fid.h b/fs/9p/fid.h index 29281b7c3887..0d6138bee2a3 100644 --- a/fs/9p/fid.h +++ b/fs/9p/fid.h @@ -49,9 +49,6 @@ static inline struct p9_fid *v9fs_fid_clone(struct dentry *dentry) static inline void v9fs_fid_add_modes(struct p9_fid *fid, unsigned int s_flags, unsigned int s_cache, unsigned int f_flags) { - if (fid->qid.type != P9_QTFILE) - return; - if ((!s_cache) || ((fid->qid.version == 0) && !(s_flags & V9FS_IGNORE_QV)) || (s_flags & V9FS_DIRECT_IO) || (f_flags & O_DIRECT)) {
Signed-off-by: Joakim Sindholt <opensource@zhasha.com> --- fs/9p/fid.h | 3 --- 1 file changed, 3 deletions(-)