@@ -47,6 +47,7 @@ static const struct inode_operations v9fs_symlink_inode_operations;
4747static u32 unixmode2p9mode (struct v9fs_session_info * v9ses , umode_t mode )
4848{
4949 int res ;
50+
5051 res = mode & 0777 ;
5152 if (S_ISDIR (mode ))
5253 res |= P9_DMDIR ;
@@ -226,6 +227,7 @@ v9fs_blank_wstat(struct p9_wstat *wstat)
226227struct inode * v9fs_alloc_inode (struct super_block * sb )
227228{
228229 struct v9fs_inode * v9inode ;
230+
229231 v9inode = kmem_cache_alloc (v9fs_inode_cache , GFP_KERNEL );
230232 if (!v9inode )
231233 return NULL ;
@@ -254,7 +256,7 @@ int v9fs_init_inode(struct v9fs_session_info *v9ses,
254256{
255257 int err = 0 ;
256258
257- inode_init_owner (& init_user_ns ,inode , NULL , mode );
259+ inode_init_owner (& init_user_ns , inode , NULL , mode );
258260 inode -> i_blocks = 0 ;
259261 inode -> i_rdev = rdev ;
260262 inode -> i_atime = inode -> i_mtime = inode -> i_ctime = current_time (inode );
@@ -443,7 +445,7 @@ static struct inode *v9fs_qid_iget(struct super_block *sb,
443445 unsigned long i_ino ;
444446 struct inode * inode ;
445447 struct v9fs_session_info * v9ses = sb -> s_fs_info ;
446- int (* test )(struct inode * , void * );
448+ int (* test )(struct inode * inode , void * data );
447449
448450 if (new )
449451 test = v9fs_test_new_inode ;
@@ -502,8 +504,10 @@ v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid,
502504static int v9fs_at_to_dotl_flags (int flags )
503505{
504506 int rflags = 0 ;
507+
505508 if (flags & AT_REMOVEDIR )
506509 rflags |= P9_DOTL_AT_REMOVEDIR ;
510+
507511 return rflags ;
508512}
509513
@@ -800,7 +804,7 @@ struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
800804
801805static int
802806v9fs_vfs_atomic_open (struct inode * dir , struct dentry * dentry ,
803- struct file * file , unsigned flags , umode_t mode )
807+ struct file * file , unsigned int flags , umode_t mode )
804808{
805809 int err ;
806810 u32 perm ;
@@ -1087,7 +1091,7 @@ static int v9fs_vfs_setattr(struct user_namespace *mnt_userns,
10871091 fid = v9fs_fid_lookup (dentry );
10881092 use_dentry = 1 ;
10891093 }
1090- if (IS_ERR (fid ))
1094+ if (IS_ERR (fid ))
10911095 return PTR_ERR (fid );
10921096
10931097 v9fs_blank_wstat (& wstat );
@@ -1367,7 +1371,7 @@ v9fs_vfs_mknod(struct user_namespace *mnt_userns, struct inode *dir,
13671371 char name [2 + U32_MAX_DIGITS + 1 + U32_MAX_DIGITS + 1 ];
13681372 u32 perm ;
13691373
1370- p9_debug (P9_DEBUG_VFS , " %lu,%pd mode: %hx MAJOR: %u MINOR: %u\n" ,
1374+ p9_debug (P9_DEBUG_VFS , " %lu,%pd mode: %x MAJOR: %u MINOR: %u\n" ,
13711375 dir -> i_ino , dentry , mode ,
13721376 MAJOR (rdev ), MINOR (rdev ));
13731377
0 commit comments