diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-26 01:41:39 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:54:53 -0500 |
commit | 18bb1db3e7607e4a997d50991a6f9fa5b0f8722c (patch) | |
tree | 4ee4e584bc9a67f3ec14ce159d2d7d4a27e68d4a /fs/nfs/dir.c | |
parent | 8208a22bb8bd3c52ef634b4ff194f14892ab1713 (diff) |
switch vfs_mkdir() and ->mkdir() to umode_t
vfs_mkdir() gets int, but immediately drops everything that might not
fit into umode_t and that's the only caller of ->mkdir()...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |