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/coda | |
| 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/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 28e7e135cfab..a74ae6fcfb7e 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c | |||
| @@ -37,7 +37,7 @@ static int coda_link(struct dentry *old_dentry, struct inode *dir_inode, | |||
| 37 | static int coda_unlink(struct inode *dir_inode, struct dentry *entry); | 37 | static int coda_unlink(struct inode *dir_inode, struct dentry *entry); |
| 38 | static int coda_symlink(struct inode *dir_inode, struct dentry *entry, | 38 | static int coda_symlink(struct inode *dir_inode, struct dentry *entry, |
| 39 | const char *symname); | 39 | const char *symname); |
| 40 | static int coda_mkdir(struct inode *dir_inode, struct dentry *entry, int mode); | 40 | static int coda_mkdir(struct inode *dir_inode, struct dentry *entry, umode_t mode); |
| 41 | static int coda_rmdir(struct inode *dir_inode, struct dentry *entry); | 41 | static int coda_rmdir(struct inode *dir_inode, struct dentry *entry); |
| 42 | static int coda_rename(struct inode *old_inode, struct dentry *old_dentry, | 42 | static int coda_rename(struct inode *old_inode, struct dentry *old_dentry, |
| 43 | struct inode *new_inode, struct dentry *new_dentry); | 43 | struct inode *new_inode, struct dentry *new_dentry); |
| @@ -223,7 +223,7 @@ err_out: | |||
| 223 | return error; | 223 | return error; |
| 224 | } | 224 | } |
| 225 | 225 | ||
| 226 | static int coda_mkdir(struct inode *dir, struct dentry *de, int mode) | 226 | static int coda_mkdir(struct inode *dir, struct dentry *de, umode_t mode) |
| 227 | { | 227 | { |
| 228 | struct inode *inode; | 228 | struct inode *inode; |
| 229 | struct coda_vattr attrs; | 229 | struct coda_vattr attrs; |
