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/nfs/dir.c | |
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/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |