Skip to content

Commit 09430ab

Browse files
committed
fs/9p: fix type mismatch in file cache mode helper
There were two flags (s_flags and s_cache) which had incorrect signed type in the parameters of the file cache mode helper function. Cc: [email protected] Fixes: 1543b4c ("fs/9p: remove writeback fid and fix per-file modes") Reviewed-by: Dominique Martinet <[email protected]> Signed-off-by: Eric Van Hensbergen <[email protected]>
1 parent 878cb3e commit 09430ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/9p/fid.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ static inline struct p9_fid *v9fs_fid_clone(struct dentry *dentry)
4646
* NOTE: these are set after open so only reflect 9p client not
4747
* underlying file system on server.
4848
*/
49-
static inline void v9fs_fid_add_modes(struct p9_fid *fid, int s_flags,
50-
int s_cache, unsigned int f_flags)
49+
static inline void v9fs_fid_add_modes(struct p9_fid *fid, unsigned int s_flags,
50+
unsigned int s_cache, unsigned int f_flags)
5151
{
5252
if (fid->qid.type != P9_QTFILE)
5353
return;

0 commit comments

Comments
 (0)