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: [email protected] Fixes: 1543b4c ("fs/9p: remove writeback fid and fix per-file modes") Reviewed-by: Christian Schoenebeck <[email protected]> Reviewed-by: Dominique Martinet <[email protected]> Signed-off-by: Eric Van Hensbergen <[email protected]>
1 parent 75b3968 commit 878cb3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)