Skip to content

Commit 878cb3e

Browse files
committed
fs/9p: fix typo in comparison logic for cache mode
There appears to be a typo in the comparison statement for the logic which sets a file's cache mode based on mount flags. Cc: stable@vger.kernel.org Fixes: 1543b4c ("fs/9p: remove writeback fid and fix per-file modes") Reviewed-by: Christian Schoenebeck <linux_oss@crudebyte.com> Reviewed-by: Dominique Martinet <asmadeus@codewreck.org> Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
1 parent 75b3968 commit 878cb3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/9p/fid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static inline void v9fs_fid_add_modes(struct p9_fid *fid, int s_flags,
5757
(s_flags & V9FS_DIRECT_IO) || (f_flags & O_DIRECT)) {
5858
fid->mode |= P9L_DIRECT; /* no read or write cache */
5959
} else if ((!(s_cache & CACHE_WRITEBACK)) ||
60-
(f_flags & O_DSYNC) | (s_flags & V9FS_SYNC)) {
60+
(f_flags & O_DSYNC) || (s_flags & V9FS_SYNC)) {
6161
fid->mode |= P9L_NOWRITECACHE;
6262
}
6363
}

0 commit comments

Comments
 (0)