diff options
-rw-r--r-- | fs/btrfs/inode.c | 4 | ||||
-rw-r--r-- | fs/cramfs/inode.c | 2 | ||||
-rw-r--r-- | fs/ecryptfs/inode.c | 2 | ||||
-rw-r--r-- | fs/freevxfs/vxfs_inode.c | 4 | ||||
-rw-r--r-- | fs/gfs2/inode.c | 10 | ||||
-rw-r--r-- | fs/nfsd/nfsfh.c | 4 | ||||
-rw-r--r-- | fs/nfsd/nfsfh.h | 2 | ||||
-rw-r--r-- | fs/nfsd/vfs.c | 4 | ||||
-rw-r--r-- | fs/nfsd/vfs.h | 2 |
9 files changed, 17 insertions, 17 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 0060875d6af6..2f426a51e60d 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -4412,8 +4412,8 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans, | |||
4412 | struct btrfs_root *root, | 4412 | struct btrfs_root *root, |
4413 | struct inode *dir, | 4413 | struct inode *dir, |
4414 | const char *name, int name_len, | 4414 | const char *name, int name_len, |
4415 | u64 ref_objectid, u64 objectid, int mode, | 4415 | u64 ref_objectid, u64 objectid, |
4416 | u64 *index) | 4416 | umode_t mode, u64 *index) |
4417 | { | 4417 | { |
4418 | struct inode *inode; | 4418 | struct inode *inode; |
4419 | struct btrfs_inode_item *inode_item; | 4419 | struct btrfs_inode_item *inode_item; |
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index 739fb59bcdc2..69fef5b9060c 100644 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c | |||
@@ -378,7 +378,7 @@ static int cramfs_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
378 | unsigned long nextoffset; | 378 | unsigned long nextoffset; |
379 | char *name; | 379 | char *name; |
380 | ino_t ino; | 380 | ino_t ino; |
381 | mode_t mode; | 381 | umode_t mode; |
382 | int namelen, error; | 382 | int namelen, error; |
383 | 383 | ||
384 | mutex_lock(&read_mutex); | 384 | mutex_lock(&read_mutex); |
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 13303830ec8b..19a8ca4ab1dd 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c | |||
@@ -158,7 +158,7 @@ static int ecryptfs_interpose(struct dentry *lower_dentry, | |||
158 | */ | 158 | */ |
159 | static struct inode * | 159 | static struct inode * |
160 | ecryptfs_do_create(struct inode *directory_inode, | 160 | ecryptfs_do_create(struct inode *directory_inode, |
161 | struct dentry *ecryptfs_dentry, int mode) | 161 | struct dentry *ecryptfs_dentry, umode_t mode) |
162 | { | 162 | { |
163 | int rc; | 163 | int rc; |
164 | struct dentry *lower_dentry; | 164 | struct dentry *lower_dentry; |
diff --git a/fs/freevxfs/vxfs_inode.c b/fs/freevxfs/vxfs_inode.c index 41ef6e715d2f..cf9ef918a2a9 100644 --- a/fs/freevxfs/vxfs_inode.c +++ b/fs/freevxfs/vxfs_inode.c | |||
@@ -187,10 +187,10 @@ vxfs_stiget(struct super_block *sbp, ino_t ino) | |||
187 | * vxfs_transmod returns a Linux mode_t for a given | 187 | * vxfs_transmod returns a Linux mode_t for a given |
188 | * VxFS inode structure. | 188 | * VxFS inode structure. |
189 | */ | 189 | */ |
190 | static __inline__ mode_t | 190 | static __inline__ umode_t |
191 | vxfs_transmod(struct vxfs_inode_info *vip) | 191 | vxfs_transmod(struct vxfs_inode_info *vip) |
192 | { | 192 | { |
193 | mode_t ret = vip->vii_mode & ~VXFS_TYPE_MASK; | 193 | umode_t ret = vip->vii_mode & ~VXFS_TYPE_MASK; |
194 | 194 | ||
195 | if (VXFS_ISFIFO(vip)) | 195 | if (VXFS_ISFIFO(vip)) |
196 | ret |= S_IFIFO; | 196 | ret |= S_IFIFO; |
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index ea4edf510559..4b0e59e0a249 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -333,7 +333,7 @@ out: | |||
333 | */ | 333 | */ |
334 | 334 | ||
335 | static int create_ok(struct gfs2_inode *dip, const struct qstr *name, | 335 | static int create_ok(struct gfs2_inode *dip, const struct qstr *name, |
336 | unsigned int mode) | 336 | umode_t mode) |
337 | { | 337 | { |
338 | int error; | 338 | int error; |
339 | 339 | ||
@@ -364,7 +364,7 @@ static int create_ok(struct gfs2_inode *dip, const struct qstr *name, | |||
364 | return 0; | 364 | return 0; |
365 | } | 365 | } |
366 | 366 | ||
367 | static void munge_mode_uid_gid(struct gfs2_inode *dip, unsigned int *mode, | 367 | static void munge_mode_uid_gid(struct gfs2_inode *dip, umode_t *mode, |
368 | unsigned int *uid, unsigned int *gid) | 368 | unsigned int *uid, unsigned int *gid) |
369 | { | 369 | { |
370 | if (GFS2_SB(&dip->i_inode)->sd_args.ar_suiddir && | 370 | if (GFS2_SB(&dip->i_inode)->sd_args.ar_suiddir && |
@@ -447,7 +447,7 @@ static void gfs2_init_dir(struct buffer_head *dibh, | |||
447 | */ | 447 | */ |
448 | 448 | ||
449 | static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl, | 449 | static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl, |
450 | const struct gfs2_inum_host *inum, unsigned int mode, | 450 | const struct gfs2_inum_host *inum, umode_t mode, |
451 | unsigned int uid, unsigned int gid, | 451 | unsigned int uid, unsigned int gid, |
452 | const u64 *generation, dev_t dev, const char *symname, | 452 | const u64 *generation, dev_t dev, const char *symname, |
453 | unsigned size, struct buffer_head **bhp) | 453 | unsigned size, struct buffer_head **bhp) |
@@ -516,7 +516,7 @@ static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl, | |||
516 | } | 516 | } |
517 | 517 | ||
518 | static int make_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl, | 518 | static int make_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl, |
519 | unsigned int mode, const struct gfs2_inum_host *inum, | 519 | umode_t mode, const struct gfs2_inum_host *inum, |
520 | const u64 *generation, dev_t dev, const char *symname, | 520 | const u64 *generation, dev_t dev, const char *symname, |
521 | unsigned int size, struct buffer_head **bhp) | 521 | unsigned int size, struct buffer_head **bhp) |
522 | { | 522 | { |
@@ -659,7 +659,7 @@ static int gfs2_security_init(struct gfs2_inode *dip, struct gfs2_inode *ip, | |||
659 | */ | 659 | */ |
660 | 660 | ||
661 | static int gfs2_create_inode(struct inode *dir, struct dentry *dentry, | 661 | static int gfs2_create_inode(struct inode *dir, struct dentry *dentry, |
662 | unsigned int mode, dev_t dev, const char *symname, | 662 | umode_t mode, dev_t dev, const char *symname, |
663 | unsigned int size, int excl) | 663 | unsigned int size, int excl) |
664 | { | 664 | { |
665 | const struct qstr *name = &dentry->d_name; | 665 | const struct qstr *name = &dentry->d_name; |
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c index c763de5c1157..68454e75fce9 100644 --- a/fs/nfsd/nfsfh.c +++ b/fs/nfsd/nfsfh.c | |||
@@ -59,7 +59,7 @@ static int nfsd_acceptable(void *expv, struct dentry *dentry) | |||
59 | * the write call). | 59 | * the write call). |
60 | */ | 60 | */ |
61 | static inline __be32 | 61 | static inline __be32 |
62 | nfsd_mode_check(struct svc_rqst *rqstp, umode_t mode, int requested) | 62 | nfsd_mode_check(struct svc_rqst *rqstp, umode_t mode, umode_t requested) |
63 | { | 63 | { |
64 | mode &= S_IFMT; | 64 | mode &= S_IFMT; |
65 | 65 | ||
@@ -293,7 +293,7 @@ out: | |||
293 | * include/linux/nfsd/nfsd.h. | 293 | * include/linux/nfsd/nfsd.h. |
294 | */ | 294 | */ |
295 | __be32 | 295 | __be32 |
296 | fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access) | 296 | fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) |
297 | { | 297 | { |
298 | struct svc_export *exp; | 298 | struct svc_export *exp; |
299 | struct dentry *dentry; | 299 | struct dentry *dentry; |
diff --git a/fs/nfsd/nfsfh.h b/fs/nfsd/nfsfh.h index c16f8d8331b5..e5e6707ba687 100644 --- a/fs/nfsd/nfsfh.h +++ b/fs/nfsd/nfsfh.h | |||
@@ -102,7 +102,7 @@ extern char * SVCFH_fmt(struct svc_fh *fhp); | |||
102 | /* | 102 | /* |
103 | * Function prototypes | 103 | * Function prototypes |
104 | */ | 104 | */ |
105 | __be32 fh_verify(struct svc_rqst *, struct svc_fh *, int, int); | 105 | __be32 fh_verify(struct svc_rqst *, struct svc_fh *, umode_t, int); |
106 | __be32 fh_compose(struct svc_fh *, struct svc_export *, struct dentry *, struct svc_fh *); | 106 | __be32 fh_compose(struct svc_fh *, struct svc_export *, struct dentry *, struct svc_fh *); |
107 | __be32 fh_update(struct svc_fh *); | 107 | __be32 fh_update(struct svc_fh *); |
108 | void fh_put(struct svc_fh *); | 108 | void fh_put(struct svc_fh *); |
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 29b1202313e9..d25a723b68ad 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -307,7 +307,7 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap, | |||
307 | struct dentry *dentry; | 307 | struct dentry *dentry; |
308 | struct inode *inode; | 308 | struct inode *inode; |
309 | int accmode = NFSD_MAY_SATTR; | 309 | int accmode = NFSD_MAY_SATTR; |
310 | int ftype = 0; | 310 | umode_t ftype = 0; |
311 | __be32 err; | 311 | __be32 err; |
312 | int host_err; | 312 | int host_err; |
313 | int size_change = 0; | 313 | int size_change = 0; |
@@ -730,7 +730,7 @@ static int nfsd_open_break_lease(struct inode *inode, int access) | |||
730 | * N.B. After this call fhp needs an fh_put | 730 | * N.B. After this call fhp needs an fh_put |
731 | */ | 731 | */ |
732 | __be32 | 732 | __be32 |
733 | nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, | 733 | nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, |
734 | int access, struct file **filp) | 734 | int access, struct file **filp) |
735 | { | 735 | { |
736 | struct dentry *dentry; | 736 | struct dentry *dentry; |
diff --git a/fs/nfsd/vfs.h b/fs/nfsd/vfs.h index cee6a12296e8..1dcd238e11a0 100644 --- a/fs/nfsd/vfs.h +++ b/fs/nfsd/vfs.h | |||
@@ -66,7 +66,7 @@ __be32 do_nfsd_create(struct svc_rqst *, struct svc_fh *, | |||
66 | __be32 nfsd_commit(struct svc_rqst *, struct svc_fh *, | 66 | __be32 nfsd_commit(struct svc_rqst *, struct svc_fh *, |
67 | loff_t, unsigned long); | 67 | loff_t, unsigned long); |
68 | #endif /* CONFIG_NFSD_V3 */ | 68 | #endif /* CONFIG_NFSD_V3 */ |
69 | __be32 nfsd_open(struct svc_rqst *, struct svc_fh *, int, | 69 | __be32 nfsd_open(struct svc_rqst *, struct svc_fh *, umode_t, |
70 | int, struct file **); | 70 | int, struct file **); |
71 | void nfsd_close(struct file *); | 71 | void nfsd_close(struct file *); |
72 | __be32 nfsd_read(struct svc_rqst *, struct svc_fh *, | 72 | __be32 nfsd_read(struct svc_rqst *, struct svc_fh *, |