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
···136136/* Inode operations in similar order to how they appear in Linux file fs.h */137137138138int139139-cifs_create(struct inode *inode, struct dentry *direntry, int mode,139139+cifs_create(struct inode *inode, struct dentry *direntry, umode_t mode,140140 struct nameidata *nd)141141{142142 int rc = -ENOENT;
+2-2
fs/coda/dir.c
···3030#include "coda_int.h"31313232/* dir inode-ops */3333-static int coda_create(struct inode *dir, struct dentry *new, int mode, struct nameidata *nd);3333+static int coda_create(struct inode *dir, struct dentry *new, umode_t mode, struct nameidata *nd);3434static struct dentry *coda_lookup(struct inode *dir, struct dentry *target, struct nameidata *nd);3535static int coda_link(struct dentry *old_dentry, struct inode *dir_inode, 3636 struct dentry *entry);···191191}192192193193/* creation routines: create, mknod, mkdir, link, symlink */194194-static int coda_create(struct inode *dir, struct dentry *de, int mode, struct nameidata *nd)194194+static int coda_create(struct inode *dir, struct dentry *de, umode_t mode, struct nameidata *nd)195195{196196 int error;197197 const char *name=de->d_name.name;
···9494 * If the create succeeds, we fill in the inode information9595 * with d_instantiate(). 9696 */9797-static int ext2_create (struct inode * dir, struct dentry * dentry, int mode, struct nameidata *nd)9797+static int ext2_create (struct inode * dir, struct dentry * dentry, umode_t mode, struct nameidata *nd)9898{9999 struct inode *inode;100100
+1-1
fs/ext3/namei.c
···16981698 * If the create succeeds, we fill in the inode information16991699 * with d_instantiate().17001700 */17011701-static int ext3_create (struct inode * dir, struct dentry * dentry, int mode,17011701+static int ext3_create (struct inode * dir, struct dentry * dentry, umode_t mode,17021702 struct nameidata *nd)17031703{17041704 handle_t *handle;
+1-1
fs/ext4/namei.c
···17361736 * If the create succeeds, we fill in the inode information17371737 * with d_instantiate().17381738 */17391739-static int ext4_create(struct inode *dir, struct dentry *dentry, int mode,17391739+static int ext4_create(struct inode *dir, struct dentry *dentry, umode_t mode,17401740 struct nameidata *nd)17411741{17421742 handle_t *handle;
+1-1
fs/fat/namei_msdos.c
···264264}265265266266/***** Create a file */267267-static int msdos_create(struct inode *dir, struct dentry *dentry, int mode,267267+static int msdos_create(struct inode *dir, struct dentry *dentry, umode_t mode,268268 struct nameidata *nd)269269{270270 struct super_block *sb = dir->i_sb;
+1-1
fs/fat/namei_vfat.c
···781781 return ERR_PTR(err);782782}783783784784-static int vfat_create(struct inode *dir, struct dentry *dentry, int mode,784784+static int vfat_create(struct inode *dir, struct dentry *dentry, umode_t mode,785785 struct nameidata *nd)786786{787787 struct super_block *sb = dir->i_sb;
+1-1
fs/fuse/dir.c
···573573 return create_new_entry(fc, req, dir, entry, mode);574574}575575576576-static int fuse_create(struct inode *dir, struct dentry *entry, int mode,576576+static int fuse_create(struct inode *dir, struct dentry *entry, umode_t mode,577577 struct nameidata *nd)578578{579579 if (nd) {
+1-1
fs/gfs2/inode.c
···760760 */761761762762static int gfs2_create(struct inode *dir, struct dentry *dentry,763763- int mode, struct nameidata *nd)763763+ umode_t mode, struct nameidata *nd)764764{765765 int excl = 0;766766 if (nd && (nd->flags & LOOKUP_EXCL))
+1-1
fs/hfs/dir.c
···186186 * a directory and return a corresponding inode, given the inode for187187 * the directory and the name (and its length) of the new file.188188 */189189-static int hfs_create(struct inode *dir, struct dentry *dentry, int mode,189189+static int hfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,190190 struct nameidata *nd)191191{192192 struct inode *inode;
+1-1
fs/hfsplus/dir.c
···453453 return res;454454}455455456456-static int hfsplus_create(struct inode *dir, struct dentry *dentry, int mode,456456+static int hfsplus_create(struct inode *dir, struct dentry *dentry, umode_t mode,457457 struct nameidata *nd)458458{459459 return hfsplus_mknod(dir, dentry, mode, 0);
···4747static int nfs_closedir(struct inode *, struct file *);4848static int nfs_readdir(struct file *, void *, filldir_t);4949static struct dentry *nfs_lookup(struct inode *, struct dentry *, struct nameidata *);5050-static int nfs_create(struct inode *, struct dentry *, int, struct nameidata *);5050+static int nfs_create(struct inode *, struct dentry *, umode_t, struct nameidata *);5151static int nfs_mkdir(struct inode *, struct dentry *, umode_t);5252static int nfs_rmdir(struct inode *, struct dentry *);5353static int nfs_unlink(struct inode *, struct dentry *);···112112#ifdef CONFIG_NFS_V4113113114114static struct dentry *nfs_atomic_lookup(struct inode *, struct dentry *, struct nameidata *);115115-static int nfs_open_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd);115115+static int nfs_open_create(struct inode *dir, struct dentry *dentry, umode_t mode, struct nameidata *nd);116116const struct inode_operations nfs4_dir_inode_operations = {117117 .create = nfs_open_create,118118 .lookup = nfs_atomic_lookup,···15731573 return nfs_lookup_revalidate(dentry, nd);15741574}1575157515761576-static int nfs_open_create(struct inode *dir, struct dentry *dentry, int mode,15771577- struct nameidata *nd)15761576+static int nfs_open_create(struct inode *dir, struct dentry *dentry,15771577+ umode_t mode, struct nameidata *nd)15781578{15791579 struct nfs_open_context *ctx = NULL;15801580 struct iattr attr;···16641664 * that the operation succeeded on the server, but an error in the16651665 * reply path made it appear to have failed.16661666 */16671667-static int nfs_create(struct inode *dir, struct dentry *dentry, int mode,16681668- struct nameidata *nd)16671667+static int nfs_create(struct inode *dir, struct dentry *dentry,16681668+ umode_t mode, struct nameidata *nd)16691669{16701670 struct iattr attr;16711671 int error;
+1-1
fs/nilfs2/namei.c
···8484 * If the create succeeds, we fill in the inode information8585 * with d_instantiate().8686 */8787-static int nilfs_create(struct inode *dir, struct dentry *dentry, int mode,8787+static int nilfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,8888 struct nameidata *nd)8989{9090 struct inode *inode;
+1-1
fs/ocfs2/dlmfs/dlmfs.c
···536536537537static int dlmfs_create(struct inode *dir,538538 struct dentry *dentry,539539- int mode,539539+ umode_t mode,540540 struct nameidata *nd)541541{542542 int status = 0;
+1-1
fs/ocfs2/namei.c
···617617618618static int ocfs2_create(struct inode *dir,619619 struct dentry *dentry,620620- int mode,620620+ umode_t mode,621621 struct nameidata *nd)622622{623623 int ret;
···7070 * If the create succeeds, we fill in the inode information7171 * with d_instantiate(). 7272 */7373-static int ufs_create (struct inode * dir, struct dentry * dentry, int mode,7373+static int ufs_create (struct inode * dir, struct dentry * dentry, umode_t mode,7474 struct nameidata *nd)7575{7676 struct inode *inode;