diff options
56 files changed, 70 insertions, 70 deletions
diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking index d819ba16a0c7..6c7676d9c0ea 100644 --- a/Documentation/filesystems/Locking +++ b/Documentation/filesystems/Locking | |||
@@ -43,7 +43,7 @@ ata *); | |||
43 | int (*link) (struct dentry *,struct inode *,struct dentry *); | 43 | int (*link) (struct dentry *,struct inode *,struct dentry *); |
44 | int (*unlink) (struct inode *,struct dentry *); | 44 | int (*unlink) (struct inode *,struct dentry *); |
45 | int (*symlink) (struct inode *,struct dentry *,const char *); | 45 | int (*symlink) (struct inode *,struct dentry *,const char *); |
46 | int (*mkdir) (struct inode *,struct dentry *,int); | 46 | int (*mkdir) (struct inode *,struct dentry *,umode_t); |
47 | int (*rmdir) (struct inode *,struct dentry *); | 47 | int (*rmdir) (struct inode *,struct dentry *); |
48 | int (*mknod) (struct inode *,struct dentry *,int,dev_t); | 48 | int (*mknod) (struct inode *,struct dentry *,int,dev_t); |
49 | int (*rename) (struct inode *, struct dentry *, | 49 | int (*rename) (struct inode *, struct dentry *, |
diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt index 43cbd0821721..0c147c79cdd8 100644 --- a/Documentation/filesystems/vfs.txt +++ b/Documentation/filesystems/vfs.txt | |||
@@ -346,7 +346,7 @@ struct inode_operations { | |||
346 | int (*link) (struct dentry *,struct inode *,struct dentry *); | 346 | int (*link) (struct dentry *,struct inode *,struct dentry *); |
347 | int (*unlink) (struct inode *,struct dentry *); | 347 | int (*unlink) (struct inode *,struct dentry *); |
348 | int (*symlink) (struct inode *,struct dentry *,const char *); | 348 | int (*symlink) (struct inode *,struct dentry *,const char *); |
349 | int (*mkdir) (struct inode *,struct dentry *,int); | 349 | int (*mkdir) (struct inode *,struct dentry *,umode_t); |
350 | int (*rmdir) (struct inode *,struct dentry *); | 350 | int (*rmdir) (struct inode *,struct dentry *); |
351 | int (*mknod) (struct inode *,struct dentry *,int,dev_t); | 351 | int (*mknod) (struct inode *,struct dentry *,int,dev_t); |
352 | int (*rename) (struct inode *, struct dentry *, | 352 | int (*rename) (struct inode *, struct dentry *, |
diff --git a/drivers/staging/pohmelfs/dir.c b/drivers/staging/pohmelfs/dir.c index 7598e77672a5..d3ad4dde991f 100644 --- a/drivers/staging/pohmelfs/dir.c +++ b/drivers/staging/pohmelfs/dir.c | |||
@@ -667,7 +667,7 @@ static int pohmelfs_create(struct inode *dir, struct dentry *dentry, int mode, | |||
667 | return pohmelfs_create_entry(dir, dentry, 0, mode); | 667 | return pohmelfs_create_entry(dir, dentry, 0, mode); |
668 | } | 668 | } |
669 | 669 | ||
670 | static int pohmelfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 670 | static int pohmelfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
671 | { | 671 | { |
672 | int err; | 672 | int err; |
673 | 673 | ||
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 2310cc9eb402..3e54900f3b7e 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -785,7 +785,7 @@ error: | |||
785 | * | 785 | * |
786 | */ | 786 | */ |
787 | 787 | ||
788 | static int v9fs_vfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 788 | static int v9fs_vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
789 | { | 789 | { |
790 | int err; | 790 | int err; |
791 | u32 perm; | 791 | u32 perm; |
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index 0b5745e21946..87e46b19b21b 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c | |||
@@ -395,7 +395,7 @@ err_clunk_old_fid: | |||
395 | */ | 395 | */ |
396 | 396 | ||
397 | static int v9fs_vfs_mkdir_dotl(struct inode *dir, | 397 | static int v9fs_vfs_mkdir_dotl(struct inode *dir, |
398 | struct dentry *dentry, int omode) | 398 | struct dentry *dentry, umode_t omode) |
399 | { | 399 | { |
400 | int err; | 400 | int err; |
401 | struct v9fs_session_info *v9ses; | 401 | struct v9fs_session_info *v9ses; |
diff --git a/fs/affs/affs.h b/fs/affs/affs.h index c2b9c79eb64e..8abcad7c935f 100644 --- a/fs/affs/affs.h +++ b/fs/affs/affs.h | |||
@@ -157,7 +157,7 @@ extern int affs_hash_name(struct super_block *sb, const u8 *name, unsigned int l | |||
157 | extern struct dentry *affs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *); | 157 | extern struct dentry *affs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *); |
158 | extern int affs_unlink(struct inode *dir, struct dentry *dentry); | 158 | extern int affs_unlink(struct inode *dir, struct dentry *dentry); |
159 | extern int affs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *); | 159 | extern int affs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *); |
160 | extern int affs_mkdir(struct inode *dir, struct dentry *dentry, int mode); | 160 | extern int affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); |
161 | extern int affs_rmdir(struct inode *dir, struct dentry *dentry); | 161 | extern int affs_rmdir(struct inode *dir, struct dentry *dentry); |
162 | extern int affs_link(struct dentry *olddentry, struct inode *dir, | 162 | extern int affs_link(struct dentry *olddentry, struct inode *dir, |
163 | struct dentry *dentry); | 163 | struct dentry *dentry); |
diff --git a/fs/affs/namei.c b/fs/affs/namei.c index 780a11dc6318..7bb7660f805d 100644 --- a/fs/affs/namei.c +++ b/fs/affs/namei.c | |||
@@ -285,12 +285,12 @@ affs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata | |||
285 | } | 285 | } |
286 | 286 | ||
287 | int | 287 | int |
288 | affs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 288 | affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
289 | { | 289 | { |
290 | struct inode *inode; | 290 | struct inode *inode; |
291 | int error; | 291 | int error; |
292 | 292 | ||
293 | pr_debug("AFFS: mkdir(%lu,\"%.*s\",0%o)\n",dir->i_ino, | 293 | pr_debug("AFFS: mkdir(%lu,\"%.*s\",0%ho)\n",dir->i_ino, |
294 | (int)dentry->d_name.len,dentry->d_name.name,mode); | 294 | (int)dentry->d_name.len,dentry->d_name.name,mode); |
295 | 295 | ||
296 | inode = affs_new_inode(dir); | 296 | inode = affs_new_inode(dir); |
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index 1b0b19550015..e6ea58abde3b 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c | |||
@@ -30,7 +30,7 @@ static int afs_lookup_filldir(void *_cookie, const char *name, int nlen, | |||
30 | loff_t fpos, u64 ino, unsigned dtype); | 30 | loff_t fpos, u64 ino, unsigned dtype); |
31 | static int afs_create(struct inode *dir, struct dentry *dentry, int mode, | 31 | static int afs_create(struct inode *dir, struct dentry *dentry, int mode, |
32 | struct nameidata *nd); | 32 | struct nameidata *nd); |
33 | static int afs_mkdir(struct inode *dir, struct dentry *dentry, int mode); | 33 | static int afs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); |
34 | static int afs_rmdir(struct inode *dir, struct dentry *dentry); | 34 | static int afs_rmdir(struct inode *dir, struct dentry *dentry); |
35 | static int afs_unlink(struct inode *dir, struct dentry *dentry); | 35 | static int afs_unlink(struct inode *dir, struct dentry *dentry); |
36 | static int afs_link(struct dentry *from, struct inode *dir, | 36 | static int afs_link(struct dentry *from, struct inode *dir, |
@@ -764,7 +764,7 @@ static void afs_d_release(struct dentry *dentry) | |||
764 | /* | 764 | /* |
765 | * create a directory on an AFS filesystem | 765 | * create a directory on an AFS filesystem |
766 | */ | 766 | */ |
767 | static int afs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 767 | static int afs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
768 | { | 768 | { |
769 | struct afs_file_status status; | 769 | struct afs_file_status status; |
770 | struct afs_callback cb; | 770 | struct afs_callback cb; |
@@ -777,7 +777,7 @@ static int afs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | |||
777 | 777 | ||
778 | dvnode = AFS_FS_I(dir); | 778 | dvnode = AFS_FS_I(dir); |
779 | 779 | ||
780 | _enter("{%x:%u},{%s},%o", | 780 | _enter("{%x:%u},{%s},%ho", |
781 | dvnode->fid.vid, dvnode->fid.vnode, dentry->d_name.name, mode); | 781 | dvnode->fid.vid, dvnode->fid.vnode, dentry->d_name.name, mode); |
782 | 782 | ||
783 | ret = -ENAMETOOLONG; | 783 | ret = -ENAMETOOLONG; |
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index f55ae23b137e..75e5f1c8e028 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
@@ -26,7 +26,7 @@ | |||
26 | static int autofs4_dir_symlink(struct inode *,struct dentry *,const char *); | 26 | static int autofs4_dir_symlink(struct inode *,struct dentry *,const char *); |
27 | static int autofs4_dir_unlink(struct inode *,struct dentry *); | 27 | static int autofs4_dir_unlink(struct inode *,struct dentry *); |
28 | static int autofs4_dir_rmdir(struct inode *,struct dentry *); | 28 | static int autofs4_dir_rmdir(struct inode *,struct dentry *); |
29 | static int autofs4_dir_mkdir(struct inode *,struct dentry *,int); | 29 | static int autofs4_dir_mkdir(struct inode *,struct dentry *,umode_t); |
30 | static long autofs4_root_ioctl(struct file *,unsigned int,unsigned long); | 30 | static long autofs4_root_ioctl(struct file *,unsigned int,unsigned long); |
31 | #ifdef CONFIG_COMPAT | 31 | #ifdef CONFIG_COMPAT |
32 | static long autofs4_root_compat_ioctl(struct file *,unsigned int,unsigned long); | 32 | static long autofs4_root_compat_ioctl(struct file *,unsigned int,unsigned long); |
@@ -699,7 +699,7 @@ static int autofs4_dir_rmdir(struct inode *dir, struct dentry *dentry) | |||
699 | return 0; | 699 | return 0; |
700 | } | 700 | } |
701 | 701 | ||
702 | static int autofs4_dir_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 702 | static int autofs4_dir_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
703 | { | 703 | { |
704 | struct autofs_sb_info *sbi = autofs4_sbi(dir->i_sb); | 704 | struct autofs_sb_info *sbi = autofs4_sbi(dir->i_sb); |
705 | struct autofs_info *ino = autofs4_dentry_ino(dentry); | 705 | struct autofs_info *ino = autofs4_dentry_ino(dentry); |
diff --git a/fs/bad_inode.c b/fs/bad_inode.c index 9205cf25f1c6..5a2738c1f315 100644 --- a/fs/bad_inode.c +++ b/fs/bad_inode.c | |||
@@ -202,7 +202,7 @@ static int bad_inode_symlink (struct inode *dir, struct dentry *dentry, | |||
202 | } | 202 | } |
203 | 203 | ||
204 | static int bad_inode_mkdir(struct inode *dir, struct dentry *dentry, | 204 | static int bad_inode_mkdir(struct inode *dir, struct dentry *dentry, |
205 | int mode) | 205 | umode_t mode) |
206 | { | 206 | { |
207 | return -EIO; | 207 | return -EIO; |
208 | } | 208 | } |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index f8ff9738558a..e30de56e6b62 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -4792,7 +4792,7 @@ fail: | |||
4792 | return err; | 4792 | return err; |
4793 | } | 4793 | } |
4794 | 4794 | ||
4795 | static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 4795 | static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
4796 | { | 4796 | { |
4797 | struct inode *inode = NULL; | 4797 | struct inode *inode = NULL; |
4798 | struct btrfs_trans_handle *trans; | 4798 | struct btrfs_trans_handle *trans; |
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 98954003a8d3..96141ae3d8be 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c | |||
@@ -753,7 +753,7 @@ static int ceph_symlink(struct inode *dir, struct dentry *dentry, | |||
753 | return err; | 753 | return err; |
754 | } | 754 | } |
755 | 755 | ||
756 | static int ceph_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 756 | static int ceph_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
757 | { | 757 | { |
758 | struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); | 758 | struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); |
759 | struct ceph_mds_client *mdsc = fsc->mdsc; | 759 | struct ceph_mds_client *mdsc = fsc->mdsc; |
@@ -767,7 +767,7 @@ static int ceph_mkdir(struct inode *dir, struct dentry *dentry, int mode) | |||
767 | dout("mksnap dir %p snap '%.*s' dn %p\n", dir, | 767 | dout("mksnap dir %p snap '%.*s' dn %p\n", dir, |
768 | dentry->d_name.len, dentry->d_name.name, dentry); | 768 | dentry->d_name.len, dentry->d_name.name, dentry); |
769 | } else if (ceph_snap(dir) == CEPH_NOSNAP) { | 769 | } else if (ceph_snap(dir) == CEPH_NOSNAP) { |
770 | dout("mkdir dir %p dn %p mode 0%o\n", dir, dentry, mode); | 770 | dout("mkdir dir %p dn %p mode 0%ho\n", dir, dentry, mode); |
771 | op = CEPH_MDS_OP_MKDIR; | 771 | op = CEPH_MDS_OP_MKDIR; |
772 | } else { | 772 | } else { |
773 | goto out; | 773 | goto out; |
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h index 30ff56005d8f..add64454fd51 100644 --- a/fs/cifs/cifsfs.h +++ b/fs/cifs/cifsfs.h | |||
@@ -51,7 +51,7 @@ extern struct dentry *cifs_lookup(struct inode *, struct dentry *, | |||
51 | extern int cifs_unlink(struct inode *dir, struct dentry *dentry); | 51 | extern int cifs_unlink(struct inode *dir, struct dentry *dentry); |
52 | extern int cifs_hardlink(struct dentry *, struct inode *, struct dentry *); | 52 | extern int cifs_hardlink(struct dentry *, struct inode *, struct dentry *); |
53 | extern int cifs_mknod(struct inode *, struct dentry *, int, dev_t); | 53 | extern int cifs_mknod(struct inode *, struct dentry *, int, dev_t); |
54 | extern int cifs_mkdir(struct inode *, struct dentry *, int); | 54 | extern int cifs_mkdir(struct inode *, struct dentry *, umode_t); |
55 | extern int cifs_rmdir(struct inode *, struct dentry *); | 55 | extern int cifs_rmdir(struct inode *, struct dentry *); |
56 | extern int cifs_rename(struct inode *, struct dentry *, struct inode *, | 56 | extern int cifs_rename(struct inode *, struct dentry *, struct inode *, |
57 | struct dentry *); | 57 | struct dentry *); |
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index e851d5b8931e..a5f54b7d9822 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -1264,7 +1264,7 @@ unlink_out: | |||
1264 | return rc; | 1264 | return rc; |
1265 | } | 1265 | } |
1266 | 1266 | ||
1267 | int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode) | 1267 | int cifs_mkdir(struct inode *inode, struct dentry *direntry, umode_t mode) |
1268 | { | 1268 | { |
1269 | int rc = 0, tmprc; | 1269 | int rc = 0, tmprc; |
1270 | int xid; | 1270 | int xid; |
@@ -1275,7 +1275,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode) | |||
1275 | struct inode *newinode = NULL; | 1275 | struct inode *newinode = NULL; |
1276 | struct cifs_fattr fattr; | 1276 | struct cifs_fattr fattr; |
1277 | 1277 | ||
1278 | cFYI(1, "In cifs_mkdir, mode = 0x%x inode = 0x%p", mode, inode); | 1278 | cFYI(1, "In cifs_mkdir, mode = 0x%hx inode = 0x%p", mode, inode); |
1279 | 1279 | ||
1280 | cifs_sb = CIFS_SB(inode->i_sb); | 1280 | cifs_sb = CIFS_SB(inode->i_sb); |
1281 | tlink = cifs_sb_tlink(cifs_sb); | 1281 | tlink = cifs_sb_tlink(cifs_sb); |
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index 28e7e135cfab..a74ae6fcfb7e 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c | |||
@@ -37,7 +37,7 @@ static int coda_link(struct dentry *old_dentry, struct inode *dir_inode, | |||
37 | static int coda_unlink(struct inode *dir_inode, struct dentry *entry); | 37 | static int coda_unlink(struct inode *dir_inode, struct dentry *entry); |
38 | static int coda_symlink(struct inode *dir_inode, struct dentry *entry, | 38 | static int coda_symlink(struct inode *dir_inode, struct dentry *entry, |
39 | const char *symname); | 39 | const char *symname); |
40 | static int coda_mkdir(struct inode *dir_inode, struct dentry *entry, int mode); | 40 | static int coda_mkdir(struct inode *dir_inode, struct dentry *entry, umode_t mode); |
41 | static int coda_rmdir(struct inode *dir_inode, struct dentry *entry); | 41 | static int coda_rmdir(struct inode *dir_inode, struct dentry *entry); |
42 | static int coda_rename(struct inode *old_inode, struct dentry *old_dentry, | 42 | static int coda_rename(struct inode *old_inode, struct dentry *old_dentry, |
43 | struct inode *new_inode, struct dentry *new_dentry); | 43 | struct inode *new_inode, struct dentry *new_dentry); |
@@ -223,7 +223,7 @@ err_out: | |||
223 | return error; | 223 | return error; |
224 | } | 224 | } |
225 | 225 | ||
226 | static int coda_mkdir(struct inode *dir, struct dentry *de, int mode) | 226 | static int coda_mkdir(struct inode *dir, struct dentry *de, umode_t mode) |
227 | { | 227 | { |
228 | struct inode *inode; | 228 | struct inode *inode; |
229 | struct coda_vattr attrs; | 229 | struct coda_vattr attrs; |
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c index 1c5296911104..5ddd7ebd9dcd 100644 --- a/fs/configfs/dir.c +++ b/fs/configfs/dir.c | |||
@@ -1170,7 +1170,7 @@ void configfs_undepend_item(struct configfs_subsystem *subsys, | |||
1170 | } | 1170 | } |
1171 | EXPORT_SYMBOL(configfs_undepend_item); | 1171 | EXPORT_SYMBOL(configfs_undepend_item); |
1172 | 1172 | ||
1173 | static int configfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 1173 | static int configfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
1174 | { | 1174 | { |
1175 | int ret = 0; | 1175 | int ret = 0; |
1176 | int module_got = 0; | 1176 | int module_got = 0; |
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 32f90a3ae63e..ebf8726482b6 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c | |||
@@ -559,7 +559,7 @@ out_lock: | |||
559 | return rc; | 559 | return rc; |
560 | } | 560 | } |
561 | 561 | ||
562 | static int ecryptfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 562 | static int ecryptfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
563 | { | 563 | { |
564 | int rc; | 564 | int rc; |
565 | struct dentry *lower_dentry; | 565 | struct dentry *lower_dentry; |
diff --git a/fs/exofs/namei.c b/fs/exofs/namei.c index b54c43775f17..ff1c8286cd69 100644 --- a/fs/exofs/namei.c +++ b/fs/exofs/namei.c | |||
@@ -153,7 +153,7 @@ static int exofs_link(struct dentry *old_dentry, struct inode *dir, | |||
153 | return exofs_add_nondir(dentry, inode); | 153 | return exofs_add_nondir(dentry, inode); |
154 | } | 154 | } |
155 | 155 | ||
156 | static int exofs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 156 | static int exofs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
157 | { | 157 | { |
158 | struct inode *inode; | 158 | struct inode *inode; |
159 | int err = -EMLINK; | 159 | int err = -EMLINK; |
diff --git a/fs/ext2/namei.c b/fs/ext2/namei.c index 761fde807fc9..e3f3672b2020 100644 --- a/fs/ext2/namei.c +++ b/fs/ext2/namei.c | |||
@@ -214,7 +214,7 @@ static int ext2_link (struct dentry * old_dentry, struct inode * dir, | |||
214 | return err; | 214 | return err; |
215 | } | 215 | } |
216 | 216 | ||
217 | static int ext2_mkdir(struct inode * dir, struct dentry * dentry, int mode) | 217 | static int ext2_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) |
218 | { | 218 | { |
219 | struct inode * inode; | 219 | struct inode * inode; |
220 | int err = -EMLINK; | 220 | int err = -EMLINK; |
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index 642dc6d66dfd..08ecb53a33ea 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c | |||
@@ -1768,7 +1768,7 @@ retry: | |||
1768 | return err; | 1768 | return err; |
1769 | } | 1769 | } |
1770 | 1770 | ||
1771 | static int ext3_mkdir(struct inode * dir, struct dentry * dentry, int mode) | 1771 | static int ext3_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) |
1772 | { | 1772 | { |
1773 | handle_t *handle; | 1773 | handle_t *handle; |
1774 | struct inode * inode; | 1774 | struct inode * inode; |
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index aa4c782c9dd7..e506746724cf 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -1806,7 +1806,7 @@ retry: | |||
1806 | return err; | 1806 | return err; |
1807 | } | 1807 | } |
1808 | 1808 | ||
1809 | static int ext4_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 1809 | static int ext4_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
1810 | { | 1810 | { |
1811 | handle_t *handle; | 1811 | handle_t *handle; |
1812 | struct inode *inode; | 1812 | struct inode *inode; |
diff --git a/fs/fat/namei_msdos.c b/fs/fat/namei_msdos.c index 216b419f30e2..d1f53cae897c 100644 --- a/fs/fat/namei_msdos.c +++ b/fs/fat/namei_msdos.c | |||
@@ -346,7 +346,7 @@ out: | |||
346 | } | 346 | } |
347 | 347 | ||
348 | /***** Make a directory */ | 348 | /***** Make a directory */ |
349 | static int msdos_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 349 | static int msdos_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
350 | { | 350 | { |
351 | struct super_block *sb = dir->i_sb; | 351 | struct super_block *sb = dir->i_sb; |
352 | struct fat_slot_info sinfo; | 352 | struct fat_slot_info sinfo; |
diff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c index a87a65663c25..fde2eda6332e 100644 --- a/fs/fat/namei_vfat.c +++ b/fs/fat/namei_vfat.c | |||
@@ -870,7 +870,7 @@ out: | |||
870 | return err; | 870 | return err; |
871 | } | 871 | } |
872 | 872 | ||
873 | static int vfat_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 873 | static int vfat_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
874 | { | 874 | { |
875 | struct super_block *sb = dir->i_sb; | 875 | struct super_block *sb = dir->i_sb; |
876 | struct inode *inode; | 876 | struct inode *inode; |
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 9f63e493a9b6..4848a1acb3bb 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c | |||
@@ -585,7 +585,7 @@ static int fuse_create(struct inode *dir, struct dentry *entry, int mode, | |||
585 | return fuse_mknod(dir, entry, mode, 0); | 585 | return fuse_mknod(dir, entry, mode, 0); |
586 | } | 586 | } |
587 | 587 | ||
588 | static int fuse_mkdir(struct inode *dir, struct dentry *entry, int mode) | 588 | static int fuse_mkdir(struct inode *dir, struct dentry *entry, umode_t mode) |
589 | { | 589 | { |
590 | struct fuse_mkdir_in inarg; | 590 | struct fuse_mkdir_in inarg; |
591 | struct fuse_conn *fc = get_fuse_conn(dir); | 591 | struct fuse_conn *fc = get_fuse_conn(dir); |
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index cfd4959b218c..eecfc39c07e6 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -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 | } |
diff --git a/fs/hfs/dir.c b/fs/hfs/dir.c index bce4eef91a06..06dc161e911c 100644 --- a/fs/hfs/dir.c +++ b/fs/hfs/dir.c | |||
@@ -216,7 +216,7 @@ static int hfs_create(struct inode *dir, struct dentry *dentry, int mode, | |||
216 | * in a directory, given the inode for the parent directory and the | 216 | * in a directory, given the inode for the parent directory and the |
217 | * name (and its length) of the new directory. | 217 | * name (and its length) of the new directory. |
218 | */ | 218 | */ |
219 | static int hfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 219 | static int hfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
220 | { | 220 | { |
221 | struct inode *inode; | 221 | struct inode *inode; |
222 | int res; | 222 | int res; |
diff --git a/fs/hfsplus/dir.c b/fs/hfsplus/dir.c index 4536cd3f15ae..ed321f0384d7 100644 --- a/fs/hfsplus/dir.c +++ b/fs/hfsplus/dir.c | |||
@@ -459,7 +459,7 @@ static int hfsplus_create(struct inode *dir, struct dentry *dentry, int mode, | |||
459 | return hfsplus_mknod(dir, dentry, mode, 0); | 459 | return hfsplus_mknod(dir, dentry, mode, 0); |
460 | } | 460 | } |
461 | 461 | ||
462 | static int hfsplus_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 462 | static int hfsplus_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
463 | { | 463 | { |
464 | return hfsplus_mknod(dir, dentry, mode | S_IFDIR, 0); | 464 | return hfsplus_mknod(dir, dentry, mode | S_IFDIR, 0); |
465 | } | 465 | } |
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 343ea632b97c..d35240fbbd73 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c | |||
@@ -676,7 +676,7 @@ int hostfs_symlink(struct inode *ino, struct dentry *dentry, const char *to) | |||
676 | return err; | 676 | return err; |
677 | } | 677 | } |
678 | 678 | ||
679 | int hostfs_mkdir(struct inode *ino, struct dentry *dentry, int mode) | 679 | int hostfs_mkdir(struct inode *ino, struct dentry *dentry, umode_t mode) |
680 | { | 680 | { |
681 | char *file; | 681 | char *file; |
682 | int err; | 682 | int err; |
diff --git a/fs/hpfs/namei.c b/fs/hpfs/namei.c index ea91fcb0ef9b..a2f89f2b9503 100644 --- a/fs/hpfs/namei.c +++ b/fs/hpfs/namei.c | |||
@@ -8,7 +8,7 @@ | |||
8 | #include <linux/sched.h> | 8 | #include <linux/sched.h> |
9 | #include "hpfs_fn.h" | 9 | #include "hpfs_fn.h" |
10 | 10 | ||
11 | static int hpfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 11 | static int hpfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
12 | { | 12 | { |
13 | const unsigned char *name = dentry->d_name.name; | 13 | const unsigned char *name = dentry->d_name.name; |
14 | unsigned len = dentry->d_name.len; | 14 | unsigned len = dentry->d_name.len; |
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 9c4ec538725b..ba269706e798 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
@@ -523,7 +523,7 @@ static int hugetlbfs_mknod(struct inode *dir, | |||
523 | return error; | 523 | return error; |
524 | } | 524 | } |
525 | 525 | ||
526 | static int hugetlbfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 526 | static int hugetlbfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
527 | { | 527 | { |
528 | int retval = hugetlbfs_mknod(dir, dentry, mode | S_IFDIR, 0); | 528 | int retval = hugetlbfs_mknod(dir, dentry, mode | S_IFDIR, 0); |
529 | if (!retval) | 529 | if (!retval) |
diff --git a/fs/jffs2/dir.c b/fs/jffs2/dir.c index be6169bd8acd..5dc458f19bc9 100644 --- a/fs/jffs2/dir.c +++ b/fs/jffs2/dir.c | |||
@@ -29,7 +29,7 @@ static struct dentry *jffs2_lookup (struct inode *,struct dentry *, | |||
29 | static int jffs2_link (struct dentry *,struct inode *,struct dentry *); | 29 | static int jffs2_link (struct dentry *,struct inode *,struct dentry *); |
30 | static int jffs2_unlink (struct inode *,struct dentry *); | 30 | static int jffs2_unlink (struct inode *,struct dentry *); |
31 | static int jffs2_symlink (struct inode *,struct dentry *,const char *); | 31 | static int jffs2_symlink (struct inode *,struct dentry *,const char *); |
32 | static int jffs2_mkdir (struct inode *,struct dentry *,int); | 32 | static int jffs2_mkdir (struct inode *,struct dentry *,umode_t); |
33 | static int jffs2_rmdir (struct inode *,struct dentry *); | 33 | static int jffs2_rmdir (struct inode *,struct dentry *); |
34 | static int jffs2_mknod (struct inode *,struct dentry *,int,dev_t); | 34 | static int jffs2_mknod (struct inode *,struct dentry *,int,dev_t); |
35 | static int jffs2_rename (struct inode *, struct dentry *, | 35 | static int jffs2_rename (struct inode *, struct dentry *, |
@@ -450,7 +450,7 @@ static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char | |||
450 | } | 450 | } |
451 | 451 | ||
452 | 452 | ||
453 | static int jffs2_mkdir (struct inode *dir_i, struct dentry *dentry, int mode) | 453 | static int jffs2_mkdir (struct inode *dir_i, struct dentry *dentry, umode_t mode) |
454 | { | 454 | { |
455 | struct jffs2_inode_info *f, *dir_f; | 455 | struct jffs2_inode_info *f, *dir_f; |
456 | struct jffs2_sb_info *c; | 456 | struct jffs2_sb_info *c; |
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c index a112ad96e474..17ea85835715 100644 --- a/fs/jfs/namei.c +++ b/fs/jfs/namei.c | |||
@@ -205,7 +205,7 @@ static int jfs_create(struct inode *dip, struct dentry *dentry, int mode, | |||
205 | * note: | 205 | * note: |
206 | * EACCESS: user needs search+write permission on the parent directory | 206 | * EACCESS: user needs search+write permission on the parent directory |
207 | */ | 207 | */ |
208 | static int jfs_mkdir(struct inode *dip, struct dentry *dentry, int mode) | 208 | static int jfs_mkdir(struct inode *dip, struct dentry *dentry, umode_t mode) |
209 | { | 209 | { |
210 | int rc = 0; | 210 | int rc = 0; |
211 | tid_t tid; /* transaction id */ | 211 | tid_t tid; /* transaction id */ |
diff --git a/fs/logfs/dir.c b/fs/logfs/dir.c index b7d7f67cee5a..25c5cbf8c123 100644 --- a/fs/logfs/dir.c +++ b/fs/logfs/dir.c | |||
@@ -482,7 +482,7 @@ out: | |||
482 | return ret; | 482 | return ret; |
483 | } | 483 | } |
484 | 484 | ||
485 | static int logfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 485 | static int logfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
486 | { | 486 | { |
487 | struct inode *inode; | 487 | struct inode *inode; |
488 | 488 | ||
diff --git a/fs/minix/namei.c b/fs/minix/namei.c index 6e6777f1b4b2..0e7a1a22e554 100644 --- a/fs/minix/namei.c +++ b/fs/minix/namei.c | |||
@@ -103,7 +103,7 @@ static int minix_link(struct dentry * old_dentry, struct inode * dir, | |||
103 | return add_nondir(dentry, inode); | 103 | return add_nondir(dentry, inode); |
104 | } | 104 | } |
105 | 105 | ||
106 | static int minix_mkdir(struct inode * dir, struct dentry *dentry, int mode) | 106 | static int minix_mkdir(struct inode * dir, struct dentry *dentry, umode_t mode) |
107 | { | 107 | { |
108 | struct inode * inode; | 108 | struct inode * inode; |
109 | int err = -EMLINK; | 109 | int err = -EMLINK; |
diff --git a/fs/namei.c b/fs/namei.c index f6b3c73e862c..443c703249b3 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -2541,7 +2541,7 @@ SYSCALL_DEFINE3(mknod, const char __user *, filename, umode_t, mode, unsigned, d | |||
2541 | return sys_mknodat(AT_FDCWD, filename, mode, dev); | 2541 | return sys_mknodat(AT_FDCWD, filename, mode, dev); |
2542 | } | 2542 | } |
2543 | 2543 | ||
2544 | int vfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 2544 | int vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
2545 | { | 2545 | { |
2546 | int error = may_create(dir, dentry); | 2546 | int error = may_create(dir, dentry); |
2547 | 2547 | ||
diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c index 9c51f621e901..dfb51f084407 100644 --- a/fs/ncpfs/dir.c +++ b/fs/ncpfs/dir.c | |||
@@ -33,7 +33,7 @@ static int ncp_readdir(struct file *, void *, filldir_t); | |||
33 | static int ncp_create(struct inode *, struct dentry *, int, struct nameidata *); | 33 | static int ncp_create(struct inode *, struct dentry *, int, struct nameidata *); |
34 | static struct dentry *ncp_lookup(struct inode *, struct dentry *, struct nameidata *); | 34 | static struct dentry *ncp_lookup(struct inode *, struct dentry *, struct nameidata *); |
35 | static int ncp_unlink(struct inode *, struct dentry *); | 35 | static int ncp_unlink(struct inode *, struct dentry *); |
36 | static int ncp_mkdir(struct inode *, struct dentry *, int); | 36 | static int ncp_mkdir(struct inode *, struct dentry *, umode_t); |
37 | static int ncp_rmdir(struct inode *, struct dentry *); | 37 | static int ncp_rmdir(struct inode *, struct dentry *); |
38 | static int ncp_rename(struct inode *, struct dentry *, | 38 | static int ncp_rename(struct inode *, struct dentry *, |
39 | struct inode *, struct dentry *); | 39 | struct inode *, struct dentry *); |
@@ -985,7 +985,7 @@ static int ncp_create(struct inode *dir, struct dentry *dentry, int mode, | |||
985 | return ncp_create_new(dir, dentry, mode, 0, 0); | 985 | return ncp_create_new(dir, dentry, mode, 0, 0); |
986 | } | 986 | } |
987 | 987 | ||
988 | static int ncp_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 988 | static int ncp_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
989 | { | 989 | { |
990 | struct ncp_entry_info finfo; | 990 | struct ncp_entry_info finfo; |
991 | struct ncp_server *server = NCP_SERVER(dir); | 991 | struct ncp_server *server = NCP_SERVER(dir); |
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 23be134b3193..5d67d92a4248 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -48,7 +48,7 @@ static int nfs_closedir(struct inode *, struct file *); | |||
48 | static int nfs_readdir(struct file *, void *, filldir_t); | 48 | static int nfs_readdir(struct file *, void *, filldir_t); |
49 | static struct dentry *nfs_lookup(struct inode *, struct dentry *, struct nameidata *); | 49 | static struct dentry *nfs_lookup(struct inode *, struct dentry *, struct nameidata *); |
50 | static int nfs_create(struct inode *, struct dentry *, int, struct nameidata *); | 50 | static int nfs_create(struct inode *, struct dentry *, int, struct nameidata *); |
51 | static int nfs_mkdir(struct inode *, struct dentry *, int); | 51 | static int nfs_mkdir(struct inode *, struct dentry *, umode_t); |
52 | static int nfs_rmdir(struct inode *, struct dentry *); | 52 | static int nfs_rmdir(struct inode *, struct dentry *); |
53 | static int nfs_unlink(struct inode *, struct dentry *); | 53 | static int nfs_unlink(struct inode *, struct dentry *); |
54 | static int nfs_symlink(struct inode *, struct dentry *, const char *); | 54 | static int nfs_symlink(struct inode *, struct dentry *, const char *); |
@@ -1719,7 +1719,7 @@ out_err: | |||
1719 | /* | 1719 | /* |
1720 | * See comments for nfs_proc_create regarding failed operations. | 1720 | * See comments for nfs_proc_create regarding failed operations. |
1721 | */ | 1721 | */ |
1722 | static int nfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 1722 | static int nfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
1723 | { | 1723 | { |
1724 | struct iattr attr; | 1724 | struct iattr attr; |
1725 | int error; | 1725 | int error; |
diff --git a/fs/nilfs2/namei.c b/fs/nilfs2/namei.c index 768982de10e4..e5e7311f1b92 100644 --- a/fs/nilfs2/namei.c +++ b/fs/nilfs2/namei.c | |||
@@ -213,7 +213,7 @@ static int nilfs_link(struct dentry *old_dentry, struct inode *dir, | |||
213 | return err; | 213 | return err; |
214 | } | 214 | } |
215 | 215 | ||
216 | static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 216 | static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
217 | { | 217 | { |
218 | struct inode *inode; | 218 | struct inode *inode; |
219 | struct nilfs_transaction_info ti; | 219 | struct nilfs_transaction_info ti; |
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index a9f007de1da8..77c8d8069461 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c | |||
@@ -488,7 +488,7 @@ static struct inode *dlmfs_get_inode(struct inode *parent, | |||
488 | /* SMP-safe */ | 488 | /* SMP-safe */ |
489 | static int dlmfs_mkdir(struct inode * dir, | 489 | static int dlmfs_mkdir(struct inode * dir, |
490 | struct dentry * dentry, | 490 | struct dentry * dentry, |
491 | int mode) | 491 | umode_t mode) |
492 | { | 492 | { |
493 | int status; | 493 | int status; |
494 | struct inode *inode = NULL; | 494 | struct inode *inode = NULL; |
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index a8b2bfea574e..c779f8bfc8a6 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c | |||
@@ -602,7 +602,7 @@ static int ocfs2_mknod_locked(struct ocfs2_super *osb, | |||
602 | 602 | ||
603 | static int ocfs2_mkdir(struct inode *dir, | 603 | static int ocfs2_mkdir(struct inode *dir, |
604 | struct dentry *dentry, | 604 | struct dentry *dentry, |
605 | int mode) | 605 | umode_t mode) |
606 | { | 606 | { |
607 | int ret; | 607 | int ret; |
608 | 608 | ||
diff --git a/fs/omfs/dir.c b/fs/omfs/dir.c index 98e544274390..667dc7ff28c0 100644 --- a/fs/omfs/dir.c +++ b/fs/omfs/dir.c | |||
@@ -279,7 +279,7 @@ out_free_inode: | |||
279 | return err; | 279 | return err; |
280 | } | 280 | } |
281 | 281 | ||
282 | static int omfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 282 | static int omfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
283 | { | 283 | { |
284 | return omfs_add_node(dir, dentry, mode | S_IFDIR); | 284 | return omfs_add_node(dir, dentry, mode | S_IFDIR); |
285 | } | 285 | } |
diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 462ceb38fec6..61972bee0561 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c | |||
@@ -106,7 +106,7 @@ ramfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) | |||
106 | return error; | 106 | return error; |
107 | } | 107 | } |
108 | 108 | ||
109 | static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, int mode) | 109 | static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) |
110 | { | 110 | { |
111 | int retval = ramfs_mknod(dir, dentry, mode | S_IFDIR, 0); | 111 | int retval = ramfs_mknod(dir, dentry, mode | S_IFDIR, 0); |
112 | if (!retval) | 112 | if (!retval) |
diff --git a/fs/reiserfs/namei.c b/fs/reiserfs/namei.c index 80058e8ce361..763239a7e8dd 100644 --- a/fs/reiserfs/namei.c +++ b/fs/reiserfs/namei.c | |||
@@ -721,7 +721,7 @@ static int reiserfs_mknod(struct inode *dir, struct dentry *dentry, int mode, | |||
721 | return retval; | 721 | return retval; |
722 | } | 722 | } |
723 | 723 | ||
724 | static int reiserfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 724 | static int reiserfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
725 | { | 725 | { |
726 | int retval; | 726 | int retval; |
727 | struct inode *inode; | 727 | struct inode *inode; |
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c index 6bc346c160e7..c24deda8a8bc 100644 --- a/fs/reiserfs/xattr.c +++ b/fs/reiserfs/xattr.c | |||
@@ -66,7 +66,7 @@ static int xattr_create(struct inode *dir, struct dentry *dentry, int mode) | |||
66 | } | 66 | } |
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | static int xattr_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 69 | static int xattr_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
70 | { | 70 | { |
71 | BUG_ON(!mutex_is_locked(&dir->i_mutex)); | 71 | BUG_ON(!mutex_is_locked(&dir->i_mutex)); |
72 | return dir->i_op->mkdir(dir, dentry, mode); | 72 | return dir->i_op->mkdir(dir, dentry, mode); |
diff --git a/fs/sysv/namei.c b/fs/sysv/namei.c index e474fbcf8bde..3368425a4ce2 100644 --- a/fs/sysv/namei.c +++ b/fs/sysv/namei.c | |||
@@ -131,7 +131,7 @@ static int sysv_link(struct dentry * old_dentry, struct inode * dir, | |||
131 | return add_nondir(dentry, inode); | 131 | return add_nondir(dentry, inode); |
132 | } | 132 | } |
133 | 133 | ||
134 | static int sysv_mkdir(struct inode * dir, struct dentry *dentry, int mode) | 134 | static int sysv_mkdir(struct inode * dir, struct dentry *dentry, umode_t mode) |
135 | { | 135 | { |
136 | struct inode * inode; | 136 | struct inode * inode; |
137 | int err = -EMLINK; | 137 | int err = -EMLINK; |
diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 683492043317..f5102f368160 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c | |||
@@ -712,7 +712,7 @@ out_cancel: | |||
712 | return err; | 712 | return err; |
713 | } | 713 | } |
714 | 714 | ||
715 | static int ubifs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 715 | static int ubifs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
716 | { | 716 | { |
717 | struct inode *inode; | 717 | struct inode *inode; |
718 | struct ubifs_inode *dir_ui = ubifs_inode(dir); | 718 | struct ubifs_inode *dir_ui = ubifs_inode(dir); |
@@ -725,7 +725,7 @@ static int ubifs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | |||
725 | * directory inode. | 725 | * directory inode. |
726 | */ | 726 | */ |
727 | 727 | ||
728 | dbg_gen("dent '%.*s', mode %#x in dir ino %lu", | 728 | dbg_gen("dent '%.*s', mode %#hx in dir ino %lu", |
729 | dentry->d_name.len, dentry->d_name.name, mode, dir->i_ino); | 729 | dentry->d_name.len, dentry->d_name.name, mode, dir->i_ino); |
730 | 730 | ||
731 | err = ubifs_budget_space(c, &req); | 731 | err = ubifs_budget_space(c, &req); |
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 4639e137222f..7f8ee32842be 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c | |||
@@ -640,7 +640,7 @@ out: | |||
640 | return err; | 640 | return err; |
641 | } | 641 | } |
642 | 642 | ||
643 | static int udf_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 643 | static int udf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
644 | { | 644 | { |
645 | struct inode *inode; | 645 | struct inode *inode; |
646 | struct udf_fileident_bh fibh; | 646 | struct udf_fileident_bh fibh; |
diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c index 639d49162241..fa743aaa327c 100644 --- a/fs/ufs/namei.c +++ b/fs/ufs/namei.c | |||
@@ -180,7 +180,7 @@ static int ufs_link (struct dentry * old_dentry, struct inode * dir, | |||
180 | return error; | 180 | return error; |
181 | } | 181 | } |
182 | 182 | ||
183 | static int ufs_mkdir(struct inode * dir, struct dentry * dentry, int mode) | 183 | static int ufs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) |
184 | { | 184 | { |
185 | struct inode * inode; | 185 | struct inode * inode; |
186 | int err = -EMLINK; | 186 | int err = -EMLINK; |
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index 23ce927973a4..99b324d43c98 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c | |||
@@ -241,7 +241,7 @@ STATIC int | |||
241 | xfs_vn_mkdir( | 241 | xfs_vn_mkdir( |
242 | struct inode *dir, | 242 | struct inode *dir, |
243 | struct dentry *dentry, | 243 | struct dentry *dentry, |
244 | int mode) | 244 | umode_t mode) |
245 | { | 245 | { |
246 | return xfs_vn_mknod(dir, dentry, mode|S_IFDIR, 0); | 246 | return xfs_vn_mknod(dir, dentry, mode|S_IFDIR, 0); |
247 | } | 247 | } |
diff --git a/include/linux/fs.h b/include/linux/fs.h index cec429d76ab0..3f7bd8b12e37 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1517,7 +1517,7 @@ extern void unlock_super(struct super_block *); | |||
1517 | * VFS helper functions.. | 1517 | * VFS helper functions.. |
1518 | */ | 1518 | */ |
1519 | extern int vfs_create(struct inode *, struct dentry *, int, struct nameidata *); | 1519 | extern int vfs_create(struct inode *, struct dentry *, int, struct nameidata *); |
1520 | extern int vfs_mkdir(struct inode *, struct dentry *, int); | 1520 | extern int vfs_mkdir(struct inode *, struct dentry *, umode_t); |
1521 | extern int vfs_mknod(struct inode *, struct dentry *, int, dev_t); | 1521 | extern int vfs_mknod(struct inode *, struct dentry *, int, dev_t); |
1522 | extern int vfs_symlink(struct inode *, struct dentry *, const char *); | 1522 | extern int vfs_symlink(struct inode *, struct dentry *, const char *); |
1523 | extern int vfs_link(struct dentry *, struct inode *, struct dentry *); | 1523 | extern int vfs_link(struct dentry *, struct inode *, struct dentry *); |
@@ -1623,7 +1623,7 @@ struct inode_operations { | |||
1623 | int (*link) (struct dentry *,struct inode *,struct dentry *); | 1623 | int (*link) (struct dentry *,struct inode *,struct dentry *); |
1624 | int (*unlink) (struct inode *,struct dentry *); | 1624 | int (*unlink) (struct inode *,struct dentry *); |
1625 | int (*symlink) (struct inode *,struct dentry *,const char *); | 1625 | int (*symlink) (struct inode *,struct dentry *,const char *); |
1626 | int (*mkdir) (struct inode *,struct dentry *,int); | 1626 | int (*mkdir) (struct inode *,struct dentry *,umode_t); |
1627 | int (*rmdir) (struct inode *,struct dentry *); | 1627 | int (*rmdir) (struct inode *,struct dentry *); |
1628 | int (*mknod) (struct inode *,struct dentry *,int,dev_t); | 1628 | int (*mknod) (struct inode *,struct dentry *,int,dev_t); |
1629 | int (*rename) (struct inode *, struct dentry *, | 1629 | int (*rename) (struct inode *, struct dentry *, |
diff --git a/include/linux/security.h b/include/linux/security.h index e8c619d39291..16cbc58cb13b 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -1453,7 +1453,7 @@ struct security_operations { | |||
1453 | int (*inode_unlink) (struct inode *dir, struct dentry *dentry); | 1453 | int (*inode_unlink) (struct inode *dir, struct dentry *dentry); |
1454 | int (*inode_symlink) (struct inode *dir, | 1454 | int (*inode_symlink) (struct inode *dir, |
1455 | struct dentry *dentry, const char *old_name); | 1455 | struct dentry *dentry, const char *old_name); |
1456 | int (*inode_mkdir) (struct inode *dir, struct dentry *dentry, int mode); | 1456 | int (*inode_mkdir) (struct inode *dir, struct dentry *dentry, umode_t mode); |
1457 | int (*inode_rmdir) (struct inode *dir, struct dentry *dentry); | 1457 | int (*inode_rmdir) (struct inode *dir, struct dentry *dentry); |
1458 | int (*inode_mknod) (struct inode *dir, struct dentry *dentry, | 1458 | int (*inode_mknod) (struct inode *dir, struct dentry *dentry, |
1459 | int mode, dev_t dev); | 1459 | int mode, dev_t dev); |
@@ -1722,7 +1722,7 @@ int security_inode_link(struct dentry *old_dentry, struct inode *dir, | |||
1722 | int security_inode_unlink(struct inode *dir, struct dentry *dentry); | 1722 | int security_inode_unlink(struct inode *dir, struct dentry *dentry); |
1723 | int security_inode_symlink(struct inode *dir, struct dentry *dentry, | 1723 | int security_inode_symlink(struct inode *dir, struct dentry *dentry, |
1724 | const char *old_name); | 1724 | const char *old_name); |
1725 | int security_inode_mkdir(struct inode *dir, struct dentry *dentry, int mode); | 1725 | int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); |
1726 | int security_inode_rmdir(struct inode *dir, struct dentry *dentry); | 1726 | int security_inode_rmdir(struct inode *dir, struct dentry *dentry); |
1727 | int security_inode_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev); | 1727 | int security_inode_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev); |
1728 | int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, | 1728 | int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, |
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index a184470cf9b5..b37a0ea55114 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -760,7 +760,7 @@ EXPORT_SYMBOL_GPL(cgroup_unlock); | |||
760 | * -> cgroup_mkdir. | 760 | * -> cgroup_mkdir. |
761 | */ | 761 | */ |
762 | 762 | ||
763 | static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, int mode); | 763 | static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); |
764 | static struct dentry *cgroup_lookup(struct inode *, struct dentry *, struct nameidata *); | 764 | static struct dentry *cgroup_lookup(struct inode *, struct dentry *, struct nameidata *); |
765 | static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry); | 765 | static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry); |
766 | static int cgroup_populate_dir(struct cgroup *cgrp); | 766 | static int cgroup_populate_dir(struct cgroup *cgrp); |
@@ -3846,7 +3846,7 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry, | |||
3846 | return err; | 3846 | return err; |
3847 | } | 3847 | } |
3848 | 3848 | ||
3849 | static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 3849 | static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
3850 | { | 3850 | { |
3851 | struct cgroup *c_parent = dentry->d_parent->d_fsdata; | 3851 | struct cgroup *c_parent = dentry->d_parent->d_fsdata; |
3852 | 3852 | ||
diff --git a/mm/shmem.c b/mm/shmem.c index c58594c06569..b8a8ddf069d0 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1489,7 +1489,7 @@ shmem_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) | |||
1489 | return error; | 1489 | return error; |
1490 | } | 1490 | } |
1491 | 1491 | ||
1492 | static int shmem_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 1492 | static int shmem_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
1493 | { | 1493 | { |
1494 | int error; | 1494 | int error; |
1495 | 1495 | ||
diff --git a/security/capability.c b/security/capability.c index 2984ea4f776f..ddd17892826a 100644 --- a/security/capability.c +++ b/security/capability.c | |||
@@ -148,7 +148,7 @@ static int cap_inode_symlink(struct inode *inode, struct dentry *dentry, | |||
148 | } | 148 | } |
149 | 149 | ||
150 | static int cap_inode_mkdir(struct inode *inode, struct dentry *dentry, | 150 | static int cap_inode_mkdir(struct inode *inode, struct dentry *dentry, |
151 | int mask) | 151 | umode_t mask) |
152 | { | 152 | { |
153 | return 0; | 153 | return 0; |
154 | } | 154 | } |
diff --git a/security/security.c b/security/security.c index e2f684aeb70c..be49eb5768bc 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -506,7 +506,7 @@ int security_inode_symlink(struct inode *dir, struct dentry *dentry, | |||
506 | return security_ops->inode_symlink(dir, dentry, old_name); | 506 | return security_ops->inode_symlink(dir, dentry, old_name); |
507 | } | 507 | } |
508 | 508 | ||
509 | int security_inode_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 509 | int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
510 | { | 510 | { |
511 | if (unlikely(IS_PRIVATE(dir))) | 511 | if (unlikely(IS_PRIVATE(dir))) |
512 | return 0; | 512 | return 0; |
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 1126c10a5e82..ad74ad24ce2a 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2618,7 +2618,7 @@ static int selinux_inode_symlink(struct inode *dir, struct dentry *dentry, const | |||
2618 | return may_create(dir, dentry, SECCLASS_LNK_FILE); | 2618 | return may_create(dir, dentry, SECCLASS_LNK_FILE); |
2619 | } | 2619 | } |
2620 | 2620 | ||
2621 | static int selinux_inode_mkdir(struct inode *dir, struct dentry *dentry, int mask) | 2621 | static int selinux_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mask) |
2622 | { | 2622 | { |
2623 | return may_create(dir, dentry, SECCLASS_DIR); | 2623 | return may_create(dir, dentry, SECCLASS_DIR); |
2624 | } | 2624 | } |