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