diff options
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r-- | fs/gfs2/inode.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index cfd4959b218c..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; |
@@ -760,7 +760,7 @@ fail: | |||
760 | */ | 760 | */ |
761 | 761 | ||
762 | static int gfs2_create(struct inode *dir, struct dentry *dentry, | 762 | static int gfs2_create(struct inode *dir, struct dentry *dentry, |
763 | int mode, struct nameidata *nd) | 763 | umode_t mode, struct nameidata *nd) |
764 | { | 764 | { |
765 | int excl = 0; | 765 | int excl = 0; |
766 | if (nd && (nd->flags & LOOKUP_EXCL)) | 766 | if (nd && (nd->flags & LOOKUP_EXCL)) |
@@ -1129,7 +1129,7 @@ static int gfs2_symlink(struct inode *dir, struct dentry *dentry, | |||
1129 | * Returns: errno | 1129 | * Returns: errno |
1130 | */ | 1130 | */ |
1131 | 1131 | ||
1132 | static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 1132 | static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
1133 | { | 1133 | { |
1134 | return gfs2_create_inode(dir, dentry, S_IFDIR | mode, 0, NULL, 0, 0); | 1134 | return gfs2_create_inode(dir, dentry, S_IFDIR | mode, 0, NULL, 0, 0); |
1135 | } | 1135 | } |
@@ -1143,7 +1143,7 @@ static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, int mode) | |||
1143 | * | 1143 | * |
1144 | */ | 1144 | */ |
1145 | 1145 | ||
1146 | static int gfs2_mknod(struct inode *dir, struct dentry *dentry, int mode, | 1146 | static int gfs2_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, |
1147 | dev_t dev) | 1147 | dev_t dev) |
1148 | { | 1148 | { |
1149 | return gfs2_create_inode(dir, dentry, mode, dev, NULL, 0, 0); | 1149 | return gfs2_create_inode(dir, dentry, mode, dev, NULL, 0, 0); |