diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-26 01:42:34 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:54:53 -0500 |
commit | 4acdaf27ebe2034c342f3be57ef49aed1ad885ef (patch) | |
tree | d89a876ee19cd88609a587f8aa6c464a52ee6d98 /fs | |
parent | 18bb1db3e7607e4a997d50991a6f9fa5b0f8722c (diff) |
switch ->create() to umode_t
vfs_create() ignores everything outside of 16bit subset of its
mode argument; switching it to umode_t is obviously equivalent
and it's the only caller of the method
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
44 files changed, 58 insertions, 58 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 3e54900f3b7e..15cd5cef4485 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -702,7 +702,7 @@ error: | |||
702 | */ | 702 | */ |
703 | 703 | ||
704 | static int | 704 | static int |
705 | v9fs_vfs_create(struct inode *dir, struct dentry *dentry, int mode, | 705 | v9fs_vfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
706 | struct nameidata *nd) | 706 | struct nameidata *nd) |
707 | { | 707 | { |
708 | int err; | 708 | int err; |
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index 87e46b19b21b..c4731381f0c5 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c | |||
@@ -253,7 +253,7 @@ int v9fs_open_to_dotl_flags(int flags) | |||
253 | */ | 253 | */ |
254 | 254 | ||
255 | static int | 255 | static int |
256 | v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, int omode, | 256 | v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, umode_t omode, |
257 | struct nameidata *nd) | 257 | struct nameidata *nd) |
258 | { | 258 | { |
259 | int err = 0; | 259 | int err = 0; |
@@ -284,7 +284,7 @@ v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, int omode, | |||
284 | 284 | ||
285 | name = (char *) dentry->d_name.name; | 285 | name = (char *) dentry->d_name.name; |
286 | P9_DPRINTK(P9_DEBUG_VFS, "v9fs_vfs_create_dotl: name:%s flags:0x%x " | 286 | P9_DPRINTK(P9_DEBUG_VFS, "v9fs_vfs_create_dotl: name:%s flags:0x%x " |
287 | "mode:0x%x\n", name, flags, omode); | 287 | "mode:0x%hx\n", name, flags, omode); |
288 | 288 | ||
289 | dfid = v9fs_fid_lookup(dentry->d_parent); | 289 | dfid = v9fs_fid_lookup(dentry->d_parent); |
290 | if (IS_ERR(dfid)) { | 290 | if (IS_ERR(dfid)) { |
diff --git a/fs/affs/affs.h b/fs/affs/affs.h index 8abcad7c935f..9cad9b4a9af7 100644 --- a/fs/affs/affs.h +++ b/fs/affs/affs.h | |||
@@ -156,7 +156,7 @@ extern void affs_free_bitmap(struct super_block *sb); | |||
156 | extern int affs_hash_name(struct super_block *sb, const u8 *name, unsigned int len); | 156 | extern int affs_hash_name(struct super_block *sb, const u8 *name, unsigned int len); |
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, umode_t mode, struct nameidata *); |
160 | extern int affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t 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, |
diff --git a/fs/affs/namei.c b/fs/affs/namei.c index 7bb7660f805d..47806940aac0 100644 --- a/fs/affs/namei.c +++ b/fs/affs/namei.c | |||
@@ -255,13 +255,13 @@ affs_unlink(struct inode *dir, struct dentry *dentry) | |||
255 | } | 255 | } |
256 | 256 | ||
257 | int | 257 | int |
258 | affs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd) | 258 | affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, struct nameidata *nd) |
259 | { | 259 | { |
260 | struct super_block *sb = dir->i_sb; | 260 | struct super_block *sb = dir->i_sb; |
261 | struct inode *inode; | 261 | struct inode *inode; |
262 | int error; | 262 | int error; |
263 | 263 | ||
264 | pr_debug("AFFS: create(%lu,\"%.*s\",0%o)\n",dir->i_ino,(int)dentry->d_name.len, | 264 | pr_debug("AFFS: create(%lu,\"%.*s\",0%ho)\n",dir->i_ino,(int)dentry->d_name.len, |
265 | dentry->d_name.name,mode); | 265 | dentry->d_name.name,mode); |
266 | 266 | ||
267 | inode = affs_new_inode(dir); | 267 | inode = affs_new_inode(dir); |
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index e6ea58abde3b..e22dc4b4a503 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c | |||
@@ -28,7 +28,7 @@ static int afs_d_delete(const struct dentry *dentry); | |||
28 | static void afs_d_release(struct dentry *dentry); | 28 | static void afs_d_release(struct dentry *dentry); |
29 | static int afs_lookup_filldir(void *_cookie, const char *name, int nlen, | 29 | 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, umode_t mode, |
32 | struct nameidata *nd); | 32 | struct nameidata *nd); |
33 | static int afs_mkdir(struct inode *dir, struct dentry *dentry, umode_t 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); |
@@ -948,7 +948,7 @@ error: | |||
948 | /* | 948 | /* |
949 | * create a regular file on an AFS filesystem | 949 | * create a regular file on an AFS filesystem |
950 | */ | 950 | */ |
951 | static int afs_create(struct inode *dir, struct dentry *dentry, int mode, | 951 | static int afs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
952 | struct nameidata *nd) | 952 | struct nameidata *nd) |
953 | { | 953 | { |
954 | struct afs_file_status status; | 954 | struct afs_file_status status; |
@@ -962,7 +962,7 @@ static int afs_create(struct inode *dir, struct dentry *dentry, int mode, | |||
962 | 962 | ||
963 | dvnode = AFS_FS_I(dir); | 963 | dvnode = AFS_FS_I(dir); |
964 | 964 | ||
965 | _enter("{%x:%u},{%s},%o,", | 965 | _enter("{%x:%u},{%s},%ho,", |
966 | dvnode->fid.vid, dvnode->fid.vnode, dentry->d_name.name, mode); | 966 | dvnode->fid.vid, dvnode->fid.vnode, dentry->d_name.name, mode); |
967 | 967 | ||
968 | ret = -ENAMETOOLONG; | 968 | ret = -ENAMETOOLONG; |
diff --git a/fs/bad_inode.c b/fs/bad_inode.c index 5a2738c1f315..8087fbc35f43 100644 --- a/fs/bad_inode.c +++ b/fs/bad_inode.c | |||
@@ -173,7 +173,7 @@ static const struct file_operations bad_file_ops = | |||
173 | }; | 173 | }; |
174 | 174 | ||
175 | static int bad_inode_create (struct inode *dir, struct dentry *dentry, | 175 | static int bad_inode_create (struct inode *dir, struct dentry *dentry, |
176 | int mode, struct nameidata *nd) | 176 | umode_t mode, struct nameidata *nd) |
177 | { | 177 | { |
178 | return -EIO; | 178 | return -EIO; |
179 | } | 179 | } |
diff --git a/fs/bfs/dir.c b/fs/bfs/dir.c index 9cc074019479..d12c7966db27 100644 --- a/fs/bfs/dir.c +++ b/fs/bfs/dir.c | |||
@@ -84,7 +84,7 @@ const struct file_operations bfs_dir_operations = { | |||
84 | 84 | ||
85 | extern void dump_imap(const char *, struct super_block *); | 85 | extern void dump_imap(const char *, struct super_block *); |
86 | 86 | ||
87 | static int bfs_create(struct inode *dir, struct dentry *dentry, int mode, | 87 | static int bfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
88 | struct nameidata *nd) | 88 | struct nameidata *nd) |
89 | { | 89 | { |
90 | int err; | 90 | int err; |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index e30de56e6b62..19630aacb320 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -4665,7 +4665,7 @@ out_unlock: | |||
4665 | } | 4665 | } |
4666 | 4666 | ||
4667 | static int btrfs_create(struct inode *dir, struct dentry *dentry, | 4667 | static int btrfs_create(struct inode *dir, struct dentry *dentry, |
4668 | int mode, struct nameidata *nd) | 4668 | umode_t mode, struct nameidata *nd) |
4669 | { | 4669 | { |
4670 | struct btrfs_trans_handle *trans; | 4670 | struct btrfs_trans_handle *trans; |
4671 | struct btrfs_root *root = BTRFS_I(dir)->root; | 4671 | struct btrfs_root *root = BTRFS_I(dir)->root; |
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 96141ae3d8be..9848d686591c 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c | |||
@@ -699,7 +699,7 @@ static int ceph_mknod(struct inode *dir, struct dentry *dentry, | |||
699 | return err; | 699 | return err; |
700 | } | 700 | } |
701 | 701 | ||
702 | static int ceph_create(struct inode *dir, struct dentry *dentry, int mode, | 702 | static int ceph_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
703 | struct nameidata *nd) | 703 | struct nameidata *nd) |
704 | { | 704 | { |
705 | dout("create in dir %p dentry %p name '%.*s'\n", | 705 | dout("create in dir %p dentry %p name '%.*s'\n", |
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h index add64454fd51..358724df558b 100644 --- a/fs/cifs/cifsfs.h +++ b/fs/cifs/cifsfs.h | |||
@@ -44,7 +44,7 @@ extern const struct address_space_operations cifs_addr_ops_smallbuf; | |||
44 | /* Functions related to inodes */ | 44 | /* Functions related to inodes */ |
45 | extern const struct inode_operations cifs_dir_inode_ops; | 45 | extern const struct inode_operations cifs_dir_inode_ops; |
46 | extern struct inode *cifs_root_iget(struct super_block *); | 46 | extern struct inode *cifs_root_iget(struct super_block *); |
47 | extern int cifs_create(struct inode *, struct dentry *, int, | 47 | extern int cifs_create(struct inode *, struct dentry *, umode_t, |
48 | struct nameidata *); | 48 | struct nameidata *); |
49 | extern struct dentry *cifs_lookup(struct inode *, struct dentry *, | 49 | extern struct dentry *cifs_lookup(struct inode *, struct dentry *, |
50 | struct nameidata *); | 50 | struct nameidata *); |
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index d7eeb9d3ed6f..2dc8be86be09 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c | |||
@@ -136,7 +136,7 @@ cifs_bp_rename_retry: | |||
136 | /* Inode operations in similar order to how they appear in Linux file fs.h */ | 136 | /* Inode operations in similar order to how they appear in Linux file fs.h */ |
137 | 137 | ||
138 | int | 138 | int |
139 | cifs_create(struct inode *inode, struct dentry *direntry, int mode, | 139 | cifs_create(struct inode *inode, struct dentry *direntry, umode_t mode, |
140 | struct nameidata *nd) | 140 | struct nameidata *nd) |
141 | { | 141 | { |
142 | int rc = -ENOENT; | 142 | int rc = -ENOENT; |
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index a74ae6fcfb7e..83d2fd8ec24b 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include "coda_int.h" | 30 | #include "coda_int.h" |
31 | 31 | ||
32 | /* dir inode-ops */ | 32 | /* dir inode-ops */ |
33 | static int coda_create(struct inode *dir, struct dentry *new, int mode, struct nameidata *nd); | 33 | static int coda_create(struct inode *dir, struct dentry *new, umode_t mode, struct nameidata *nd); |
34 | static struct dentry *coda_lookup(struct inode *dir, struct dentry *target, struct nameidata *nd); | 34 | static struct dentry *coda_lookup(struct inode *dir, struct dentry *target, struct nameidata *nd); |
35 | static int coda_link(struct dentry *old_dentry, struct inode *dir_inode, | 35 | static int coda_link(struct dentry *old_dentry, struct inode *dir_inode, |
36 | struct dentry *entry); | 36 | struct dentry *entry); |
@@ -191,7 +191,7 @@ static inline void coda_dir_drop_nlink(struct inode *dir) | |||
191 | } | 191 | } |
192 | 192 | ||
193 | /* creation routines: create, mknod, mkdir, link, symlink */ | 193 | /* creation routines: create, mknod, mkdir, link, symlink */ |
194 | static int coda_create(struct inode *dir, struct dentry *de, int mode, struct nameidata *nd) | 194 | static int coda_create(struct inode *dir, struct dentry *de, umode_t mode, struct nameidata *nd) |
195 | { | 195 | { |
196 | int error; | 196 | int error; |
197 | const char *name=de->d_name.name; | 197 | const char *name=de->d_name.name; |
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index ebf8726482b6..81e6542ab20f 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c | |||
@@ -267,7 +267,7 @@ out: | |||
267 | */ | 267 | */ |
268 | static int | 268 | static int |
269 | ecryptfs_create(struct inode *directory_inode, struct dentry *ecryptfs_dentry, | 269 | ecryptfs_create(struct inode *directory_inode, struct dentry *ecryptfs_dentry, |
270 | int mode, struct nameidata *nd) | 270 | umode_t mode, struct nameidata *nd) |
271 | { | 271 | { |
272 | struct inode *ecryptfs_inode; | 272 | struct inode *ecryptfs_inode; |
273 | int rc; | 273 | int rc; |
diff --git a/fs/exofs/namei.c b/fs/exofs/namei.c index ff1c8286cd69..58644544849d 100644 --- a/fs/exofs/namei.c +++ b/fs/exofs/namei.c | |||
@@ -59,7 +59,7 @@ static struct dentry *exofs_lookup(struct inode *dir, struct dentry *dentry, | |||
59 | return d_splice_alias(inode, dentry); | 59 | return d_splice_alias(inode, dentry); |
60 | } | 60 | } |
61 | 61 | ||
62 | static int exofs_create(struct inode *dir, struct dentry *dentry, int mode, | 62 | static int exofs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
63 | struct nameidata *nd) | 63 | struct nameidata *nd) |
64 | { | 64 | { |
65 | struct inode *inode = exofs_new_inode(dir, mode); | 65 | struct inode *inode = exofs_new_inode(dir, mode); |
diff --git a/fs/ext2/namei.c b/fs/ext2/namei.c index e3f3672b2020..cb759e661b15 100644 --- a/fs/ext2/namei.c +++ b/fs/ext2/namei.c | |||
@@ -94,7 +94,7 @@ struct dentry *ext2_get_parent(struct dentry *child) | |||
94 | * If the create succeeds, we fill in the inode information | 94 | * If the create succeeds, we fill in the inode information |
95 | * with d_instantiate(). | 95 | * with d_instantiate(). |
96 | */ | 96 | */ |
97 | static int ext2_create (struct inode * dir, struct dentry * dentry, int mode, struct nameidata *nd) | 97 | static int ext2_create (struct inode * dir, struct dentry * dentry, umode_t mode, struct nameidata *nd) |
98 | { | 98 | { |
99 | struct inode *inode; | 99 | struct inode *inode; |
100 | 100 | ||
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index 08ecb53a33ea..6047d121f537 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c | |||
@@ -1698,7 +1698,7 @@ static int ext3_add_nondir(handle_t *handle, | |||
1698 | * If the create succeeds, we fill in the inode information | 1698 | * If the create succeeds, we fill in the inode information |
1699 | * with d_instantiate(). | 1699 | * with d_instantiate(). |
1700 | */ | 1700 | */ |
1701 | static int ext3_create (struct inode * dir, struct dentry * dentry, int mode, | 1701 | static int ext3_create (struct inode * dir, struct dentry * dentry, umode_t mode, |
1702 | struct nameidata *nd) | 1702 | struct nameidata *nd) |
1703 | { | 1703 | { |
1704 | handle_t *handle; | 1704 | handle_t *handle; |
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index e506746724cf..77306f36a610 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -1736,7 +1736,7 @@ static int ext4_add_nondir(handle_t *handle, | |||
1736 | * If the create succeeds, we fill in the inode information | 1736 | * If the create succeeds, we fill in the inode information |
1737 | * with d_instantiate(). | 1737 | * with d_instantiate(). |
1738 | */ | 1738 | */ |
1739 | static int ext4_create(struct inode *dir, struct dentry *dentry, int mode, | 1739 | static int ext4_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
1740 | struct nameidata *nd) | 1740 | struct nameidata *nd) |
1741 | { | 1741 | { |
1742 | handle_t *handle; | 1742 | handle_t *handle; |
diff --git a/fs/fat/namei_msdos.c b/fs/fat/namei_msdos.c index d1f53cae897c..c5938c9084b9 100644 --- a/fs/fat/namei_msdos.c +++ b/fs/fat/namei_msdos.c | |||
@@ -264,7 +264,7 @@ static int msdos_add_entry(struct inode *dir, const unsigned char *name, | |||
264 | } | 264 | } |
265 | 265 | ||
266 | /***** Create a file */ | 266 | /***** Create a file */ |
267 | static int msdos_create(struct inode *dir, struct dentry *dentry, int mode, | 267 | static int msdos_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
268 | struct nameidata *nd) | 268 | struct nameidata *nd) |
269 | { | 269 | { |
270 | struct super_block *sb = dir->i_sb; | 270 | struct super_block *sb = dir->i_sb; |
diff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c index fde2eda6332e..3a444b4e2368 100644 --- a/fs/fat/namei_vfat.c +++ b/fs/fat/namei_vfat.c | |||
@@ -781,7 +781,7 @@ error: | |||
781 | return ERR_PTR(err); | 781 | return ERR_PTR(err); |
782 | } | 782 | } |
783 | 783 | ||
784 | static int vfat_create(struct inode *dir, struct dentry *dentry, int mode, | 784 | static int vfat_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
785 | struct nameidata *nd) | 785 | struct nameidata *nd) |
786 | { | 786 | { |
787 | struct super_block *sb = dir->i_sb; | 787 | struct super_block *sb = dir->i_sb; |
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 4848a1acb3bb..603bb8a9b8ca 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c | |||
@@ -573,7 +573,7 @@ static int fuse_mknod(struct inode *dir, struct dentry *entry, int mode, | |||
573 | return create_new_entry(fc, req, dir, entry, mode); | 573 | return create_new_entry(fc, req, dir, entry, mode); |
574 | } | 574 | } |
575 | 575 | ||
576 | static int fuse_create(struct inode *dir, struct dentry *entry, int mode, | 576 | static int fuse_create(struct inode *dir, struct dentry *entry, umode_t mode, |
577 | struct nameidata *nd) | 577 | struct nameidata *nd) |
578 | { | 578 | { |
579 | if (nd) { | 579 | if (nd) { |
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index eecfc39c07e6..aadf792be750 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -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)) |
diff --git a/fs/hfs/dir.c b/fs/hfs/dir.c index 06dc161e911c..62fc14ea4b73 100644 --- a/fs/hfs/dir.c +++ b/fs/hfs/dir.c | |||
@@ -186,7 +186,7 @@ static int hfs_dir_release(struct inode *inode, struct file *file) | |||
186 | * a directory and return a corresponding inode, given the inode for | 186 | * a directory and return a corresponding inode, given the inode for |
187 | * the directory and the name (and its length) of the new file. | 187 | * the directory and the name (and its length) of the new file. |
188 | */ | 188 | */ |
189 | static int hfs_create(struct inode *dir, struct dentry *dentry, int mode, | 189 | static int hfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
190 | struct nameidata *nd) | 190 | struct nameidata *nd) |
191 | { | 191 | { |
192 | struct inode *inode; | 192 | struct inode *inode; |
diff --git a/fs/hfsplus/dir.c b/fs/hfsplus/dir.c index ed321f0384d7..ef6547ca4214 100644 --- a/fs/hfsplus/dir.c +++ b/fs/hfsplus/dir.c | |||
@@ -453,7 +453,7 @@ out: | |||
453 | return res; | 453 | return res; |
454 | } | 454 | } |
455 | 455 | ||
456 | static int hfsplus_create(struct inode *dir, struct dentry *dentry, int mode, | 456 | static int hfsplus_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
457 | struct nameidata *nd) | 457 | struct nameidata *nd) |
458 | { | 458 | { |
459 | return hfsplus_mknod(dir, dentry, mode, 0); | 459 | return hfsplus_mknod(dir, dentry, mode, 0); |
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index d35240fbbd73..3a3a530f5bad 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c | |||
@@ -551,7 +551,7 @@ static int read_name(struct inode *ino, char *name) | |||
551 | return 0; | 551 | return 0; |
552 | } | 552 | } |
553 | 553 | ||
554 | int hostfs_create(struct inode *dir, struct dentry *dentry, int mode, | 554 | int hostfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
555 | struct nameidata *nd) | 555 | struct nameidata *nd) |
556 | { | 556 | { |
557 | struct inode *inode; | 557 | struct inode *inode; |
diff --git a/fs/hpfs/namei.c b/fs/hpfs/namei.c index a2f89f2b9503..769f76c7303a 100644 --- a/fs/hpfs/namei.c +++ b/fs/hpfs/namei.c | |||
@@ -115,7 +115,7 @@ bail: | |||
115 | return err; | 115 | return err; |
116 | } | 116 | } |
117 | 117 | ||
118 | static int hpfs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd) | 118 | static int hpfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, struct nameidata *nd) |
119 | { | 119 | { |
120 | const unsigned char *name = dentry->d_name.name; | 120 | const unsigned char *name = dentry->d_name.name; |
121 | unsigned len = dentry->d_name.len; | 121 | unsigned len = dentry->d_name.len; |
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index ba269706e798..57996c3d8d0c 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
@@ -531,7 +531,7 @@ static int hugetlbfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mod | |||
531 | return retval; | 531 | return retval; |
532 | } | 532 | } |
533 | 533 | ||
534 | static int hugetlbfs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd) | 534 | static int hugetlbfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, struct nameidata *nd) |
535 | { | 535 | { |
536 | return hugetlbfs_mknod(dir, dentry, mode | S_IFREG, 0); | 536 | return hugetlbfs_mknod(dir, dentry, mode | S_IFREG, 0); |
537 | } | 537 | } |
diff --git a/fs/jffs2/dir.c b/fs/jffs2/dir.c index 5dc458f19bc9..16a75e9a038d 100644 --- a/fs/jffs2/dir.c +++ b/fs/jffs2/dir.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | static int jffs2_readdir (struct file *, void *, filldir_t); | 23 | static int jffs2_readdir (struct file *, void *, filldir_t); |
24 | 24 | ||
25 | static int jffs2_create (struct inode *,struct dentry *,int, | 25 | static int jffs2_create (struct inode *,struct dentry *,umode_t, |
26 | struct nameidata *); | 26 | struct nameidata *); |
27 | static struct dentry *jffs2_lookup (struct inode *,struct dentry *, | 27 | static struct dentry *jffs2_lookup (struct inode *,struct dentry *, |
28 | struct nameidata *); | 28 | struct nameidata *); |
@@ -169,8 +169,8 @@ static int jffs2_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
169 | /***********************************************************************/ | 169 | /***********************************************************************/ |
170 | 170 | ||
171 | 171 | ||
172 | static int jffs2_create(struct inode *dir_i, struct dentry *dentry, int mode, | 172 | static int jffs2_create(struct inode *dir_i, struct dentry *dentry, |
173 | struct nameidata *nd) | 173 | umode_t mode, struct nameidata *nd) |
174 | { | 174 | { |
175 | struct jffs2_raw_inode *ri; | 175 | struct jffs2_raw_inode *ri; |
176 | struct jffs2_inode_info *f, *dir_f; | 176 | struct jffs2_inode_info *f, *dir_f; |
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c index 17ea85835715..6c0b1ab8107d 100644 --- a/fs/jfs/namei.c +++ b/fs/jfs/namei.c | |||
@@ -72,7 +72,7 @@ static inline void free_ea_wmap(struct inode *inode) | |||
72 | * RETURN: Errors from subroutines | 72 | * RETURN: Errors from subroutines |
73 | * | 73 | * |
74 | */ | 74 | */ |
75 | static int jfs_create(struct inode *dip, struct dentry *dentry, int mode, | 75 | static int jfs_create(struct inode *dip, struct dentry *dentry, umode_t mode, |
76 | struct nameidata *nd) | 76 | struct nameidata *nd) |
77 | { | 77 | { |
78 | int rc = 0; | 78 | int rc = 0; |
diff --git a/fs/logfs/dir.c b/fs/logfs/dir.c index 25c5cbf8c123..a74aa461d53c 100644 --- a/fs/logfs/dir.c +++ b/fs/logfs/dir.c | |||
@@ -501,7 +501,7 @@ static int logfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) | |||
501 | return __logfs_create(dir, dentry, inode, NULL, 0); | 501 | return __logfs_create(dir, dentry, inode, NULL, 0); |
502 | } | 502 | } |
503 | 503 | ||
504 | static int logfs_create(struct inode *dir, struct dentry *dentry, int mode, | 504 | static int logfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
505 | struct nameidata *nd) | 505 | struct nameidata *nd) |
506 | { | 506 | { |
507 | struct inode *inode; | 507 | struct inode *inode; |
diff --git a/fs/minix/namei.c b/fs/minix/namei.c index 0e7a1a22e554..c652650bf5a3 100644 --- a/fs/minix/namei.c +++ b/fs/minix/namei.c | |||
@@ -54,7 +54,7 @@ static int minix_mknod(struct inode * dir, struct dentry *dentry, int mode, dev_ | |||
54 | return error; | 54 | return error; |
55 | } | 55 | } |
56 | 56 | ||
57 | static int minix_create(struct inode * dir, struct dentry *dentry, int mode, | 57 | static int minix_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
58 | struct nameidata *nd) | 58 | struct nameidata *nd) |
59 | { | 59 | { |
60 | return minix_mknod(dir, dentry, mode, 0); | 60 | return minix_mknod(dir, dentry, mode, 0); |
diff --git a/fs/namei.c b/fs/namei.c index 443c703249b3..05d1c2ceb131 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1976,7 +1976,7 @@ void unlock_rename(struct dentry *p1, struct dentry *p2) | |||
1976 | } | 1976 | } |
1977 | } | 1977 | } |
1978 | 1978 | ||
1979 | int vfs_create(struct inode *dir, struct dentry *dentry, int mode, | 1979 | int vfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
1980 | struct nameidata *nd) | 1980 | struct nameidata *nd) |
1981 | { | 1981 | { |
1982 | int error = may_create(dir, dentry); | 1982 | int error = may_create(dir, dentry); |
diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c index dfb51f084407..98d1b8c6fd8c 100644 --- a/fs/ncpfs/dir.c +++ b/fs/ncpfs/dir.c | |||
@@ -30,7 +30,7 @@ static void ncp_do_readdir(struct file *, void *, filldir_t, | |||
30 | 30 | ||
31 | static int ncp_readdir(struct file *, void *, filldir_t); | 31 | static int ncp_readdir(struct file *, void *, filldir_t); |
32 | 32 | ||
33 | static int ncp_create(struct inode *, struct dentry *, int, struct nameidata *); | 33 | static int ncp_create(struct inode *, struct dentry *, umode_t, 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 *, umode_t); | 36 | static int ncp_mkdir(struct inode *, struct dentry *, umode_t); |
@@ -979,7 +979,7 @@ out: | |||
979 | return error; | 979 | return error; |
980 | } | 980 | } |
981 | 981 | ||
982 | static int ncp_create(struct inode *dir, struct dentry *dentry, int mode, | 982 | static int ncp_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
983 | struct nameidata *nd) | 983 | struct nameidata *nd) |
984 | { | 984 | { |
985 | return ncp_create_new(dir, dentry, mode, 0, 0); | 985 | return ncp_create_new(dir, dentry, mode, 0, 0); |
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 5d67d92a4248..7cdee1d4160f 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -47,7 +47,7 @@ static int nfs_opendir(struct inode *, struct file *); | |||
47 | static int nfs_closedir(struct inode *, struct file *); | 47 | 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 *, umode_t, struct nameidata *); |
51 | static int nfs_mkdir(struct inode *, struct dentry *, umode_t); | 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 *); |
@@ -112,7 +112,7 @@ const struct inode_operations nfs3_dir_inode_operations = { | |||
112 | #ifdef CONFIG_NFS_V4 | 112 | #ifdef CONFIG_NFS_V4 |
113 | 113 | ||
114 | static struct dentry *nfs_atomic_lookup(struct inode *, struct dentry *, struct nameidata *); | 114 | static struct dentry *nfs_atomic_lookup(struct inode *, struct dentry *, struct nameidata *); |
115 | static int nfs_open_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd); | 115 | static int nfs_open_create(struct inode *dir, struct dentry *dentry, umode_t mode, struct nameidata *nd); |
116 | const struct inode_operations nfs4_dir_inode_operations = { | 116 | const struct inode_operations nfs4_dir_inode_operations = { |
117 | .create = nfs_open_create, | 117 | .create = nfs_open_create, |
118 | .lookup = nfs_atomic_lookup, | 118 | .lookup = nfs_atomic_lookup, |
@@ -1573,8 +1573,8 @@ no_open: | |||
1573 | return nfs_lookup_revalidate(dentry, nd); | 1573 | return nfs_lookup_revalidate(dentry, nd); |
1574 | } | 1574 | } |
1575 | 1575 | ||
1576 | static int nfs_open_create(struct inode *dir, struct dentry *dentry, int mode, | 1576 | static int nfs_open_create(struct inode *dir, struct dentry *dentry, |
1577 | struct nameidata *nd) | 1577 | umode_t mode, struct nameidata *nd) |
1578 | { | 1578 | { |
1579 | struct nfs_open_context *ctx = NULL; | 1579 | struct nfs_open_context *ctx = NULL; |
1580 | struct iattr attr; | 1580 | struct iattr attr; |
@@ -1664,8 +1664,8 @@ out_error: | |||
1664 | * that the operation succeeded on the server, but an error in the | 1664 | * that the operation succeeded on the server, but an error in the |
1665 | * reply path made it appear to have failed. | 1665 | * reply path made it appear to have failed. |
1666 | */ | 1666 | */ |
1667 | static int nfs_create(struct inode *dir, struct dentry *dentry, int mode, | 1667 | static int nfs_create(struct inode *dir, struct dentry *dentry, |
1668 | struct nameidata *nd) | 1668 | umode_t mode, struct nameidata *nd) |
1669 | { | 1669 | { |
1670 | struct iattr attr; | 1670 | struct iattr attr; |
1671 | int error; | 1671 | int error; |
diff --git a/fs/nilfs2/namei.c b/fs/nilfs2/namei.c index e5e7311f1b92..fcd86c38f968 100644 --- a/fs/nilfs2/namei.c +++ b/fs/nilfs2/namei.c | |||
@@ -84,7 +84,7 @@ nilfs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd) | |||
84 | * If the create succeeds, we fill in the inode information | 84 | * If the create succeeds, we fill in the inode information |
85 | * with d_instantiate(). | 85 | * with d_instantiate(). |
86 | */ | 86 | */ |
87 | static int nilfs_create(struct inode *dir, struct dentry *dentry, int mode, | 87 | static int nilfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
88 | struct nameidata *nd) | 88 | struct nameidata *nd) |
89 | { | 89 | { |
90 | struct inode *inode; | 90 | struct inode *inode; |
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index 77c8d8069461..ccb33289c29a 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c | |||
@@ -536,7 +536,7 @@ bail: | |||
536 | 536 | ||
537 | static int dlmfs_create(struct inode *dir, | 537 | static int dlmfs_create(struct inode *dir, |
538 | struct dentry *dentry, | 538 | struct dentry *dentry, |
539 | int mode, | 539 | umode_t mode, |
540 | struct nameidata *nd) | 540 | struct nameidata *nd) |
541 | { | 541 | { |
542 | int status = 0; | 542 | int status = 0; |
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index c779f8bfc8a6..46f46ffe77c5 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c | |||
@@ -617,7 +617,7 @@ static int ocfs2_mkdir(struct inode *dir, | |||
617 | 617 | ||
618 | static int ocfs2_create(struct inode *dir, | 618 | static int ocfs2_create(struct inode *dir, |
619 | struct dentry *dentry, | 619 | struct dentry *dentry, |
620 | int mode, | 620 | umode_t mode, |
621 | struct nameidata *nd) | 621 | struct nameidata *nd) |
622 | { | 622 | { |
623 | int ret; | 623 | int ret; |
diff --git a/fs/omfs/dir.c b/fs/omfs/dir.c index 667dc7ff28c0..d82599f49f6d 100644 --- a/fs/omfs/dir.c +++ b/fs/omfs/dir.c | |||
@@ -284,7 +284,7 @@ static int omfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) | |||
284 | return omfs_add_node(dir, dentry, mode | S_IFDIR); | 284 | return omfs_add_node(dir, dentry, mode | S_IFDIR); |
285 | } | 285 | } |
286 | 286 | ||
287 | static int omfs_create(struct inode *dir, struct dentry *dentry, int mode, | 287 | static int omfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
288 | struct nameidata *nd) | 288 | struct nameidata *nd) |
289 | { | 289 | { |
290 | return omfs_add_node(dir, dentry, mode | S_IFREG); | 290 | return omfs_add_node(dir, dentry, mode | S_IFREG); |
diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 61972bee0561..c2ed2a36094e 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c | |||
@@ -114,7 +114,7 @@ static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) | |||
114 | return retval; | 114 | return retval; |
115 | } | 115 | } |
116 | 116 | ||
117 | static int ramfs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd) | 117 | static int ramfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, struct nameidata *nd) |
118 | { | 118 | { |
119 | return ramfs_mknod(dir, dentry, mode | S_IFREG, 0); | 119 | return ramfs_mknod(dir, dentry, mode | S_IFREG, 0); |
120 | } | 120 | } |
diff --git a/fs/reiserfs/namei.c b/fs/reiserfs/namei.c index 763239a7e8dd..46db3b9fa7cf 100644 --- a/fs/reiserfs/namei.c +++ b/fs/reiserfs/namei.c | |||
@@ -572,7 +572,7 @@ static int new_inode_init(struct inode *inode, struct inode *dir, int mode) | |||
572 | return 0; | 572 | return 0; |
573 | } | 573 | } |
574 | 574 | ||
575 | static int reiserfs_create(struct inode *dir, struct dentry *dentry, int mode, | 575 | static int reiserfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
576 | struct nameidata *nd) | 576 | struct nameidata *nd) |
577 | { | 577 | { |
578 | int retval; | 578 | int retval; |
diff --git a/fs/sysv/namei.c b/fs/sysv/namei.c index 3368425a4ce2..d306eebeb6c1 100644 --- a/fs/sysv/namei.c +++ b/fs/sysv/namei.c | |||
@@ -80,7 +80,7 @@ static int sysv_mknod(struct inode * dir, struct dentry * dentry, int mode, dev_ | |||
80 | return err; | 80 | return err; |
81 | } | 81 | } |
82 | 82 | ||
83 | static int sysv_create(struct inode * dir, struct dentry * dentry, int mode, struct nameidata *nd) | 83 | static int sysv_create(struct inode * dir, struct dentry * dentry, umode_t mode, struct nameidata *nd) |
84 | { | 84 | { |
85 | return sysv_mknod(dir, dentry, mode, 0); | 85 | return sysv_mknod(dir, dentry, mode, 0); |
86 | } | 86 | } |
diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index f5102f368160..f332878ce4de 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c | |||
@@ -253,7 +253,7 @@ out: | |||
253 | return ERR_PTR(err); | 253 | return ERR_PTR(err); |
254 | } | 254 | } |
255 | 255 | ||
256 | static int ubifs_create(struct inode *dir, struct dentry *dentry, int mode, | 256 | static int ubifs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
257 | struct nameidata *nd) | 257 | struct nameidata *nd) |
258 | { | 258 | { |
259 | struct inode *inode; | 259 | struct inode *inode; |
@@ -268,7 +268,7 @@ static int ubifs_create(struct inode *dir, struct dentry *dentry, int mode, | |||
268 | * parent directory inode. | 268 | * parent directory inode. |
269 | */ | 269 | */ |
270 | 270 | ||
271 | dbg_gen("dent '%.*s', mode %#x in dir ino %lu", | 271 | dbg_gen("dent '%.*s', mode %#hx in dir ino %lu", |
272 | dentry->d_name.len, dentry->d_name.name, mode, dir->i_ino); | 272 | dentry->d_name.len, dentry->d_name.name, mode, dir->i_ino); |
273 | 273 | ||
274 | err = ubifs_budget_space(c, &req); | 274 | err = ubifs_budget_space(c, &req); |
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 7f8ee32842be..135a4ca01038 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c | |||
@@ -552,7 +552,7 @@ static int udf_delete_entry(struct inode *inode, struct fileIdentDesc *fi, | |||
552 | return udf_write_fi(inode, cfi, fi, fibh, NULL, NULL); | 552 | return udf_write_fi(inode, cfi, fi, fibh, NULL, NULL); |
553 | } | 553 | } |
554 | 554 | ||
555 | static int udf_create(struct inode *dir, struct dentry *dentry, int mode, | 555 | static int udf_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
556 | struct nameidata *nd) | 556 | struct nameidata *nd) |
557 | { | 557 | { |
558 | struct udf_fileident_bh fibh; | 558 | struct udf_fileident_bh fibh; |
diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c index fa743aaa327c..ba2a9d6c0314 100644 --- a/fs/ufs/namei.c +++ b/fs/ufs/namei.c | |||
@@ -70,7 +70,7 @@ static struct dentry *ufs_lookup(struct inode * dir, struct dentry *dentry, stru | |||
70 | * If the create succeeds, we fill in the inode information | 70 | * If the create succeeds, we fill in the inode information |
71 | * with d_instantiate(). | 71 | * with d_instantiate(). |
72 | */ | 72 | */ |
73 | static int ufs_create (struct inode * dir, struct dentry * dentry, int mode, | 73 | static int ufs_create (struct inode * dir, struct dentry * dentry, umode_t mode, |
74 | struct nameidata *nd) | 74 | struct nameidata *nd) |
75 | { | 75 | { |
76 | struct inode *inode; | 76 | struct inode *inode; |
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index 99b324d43c98..0efa4e51bebf 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c | |||
@@ -231,7 +231,7 @@ STATIC int | |||
231 | xfs_vn_create( | 231 | xfs_vn_create( |
232 | struct inode *dir, | 232 | struct inode *dir, |
233 | struct dentry *dentry, | 233 | struct dentry *dentry, |
234 | int mode, | 234 | umode_t mode, |
235 | struct nameidata *nd) | 235 | struct nameidata *nd) |
236 | { | 236 | { |
237 | return xfs_vn_mknod(dir, dentry, mode, 0); | 237 | return xfs_vn_mknod(dir, dentry, mode, 0); |