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/cifs | |
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/cifs')
-rw-r--r-- | fs/cifs/cifsfs.h | 2 | ||||
-rw-r--r-- | fs/cifs/inode.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h index 30ff56005d8f..add64454fd51 100644 --- a/fs/cifs/cifsfs.h +++ b/fs/cifs/cifsfs.h | |||
@@ -51,7 +51,7 @@ extern struct dentry *cifs_lookup(struct inode *, struct dentry *, | |||
51 | extern int cifs_unlink(struct inode *dir, struct dentry *dentry); | 51 | extern int cifs_unlink(struct inode *dir, struct dentry *dentry); |
52 | extern int cifs_hardlink(struct dentry *, struct inode *, struct dentry *); | 52 | extern int cifs_hardlink(struct dentry *, struct inode *, struct dentry *); |
53 | extern int cifs_mknod(struct inode *, struct dentry *, int, dev_t); | 53 | extern int cifs_mknod(struct inode *, struct dentry *, int, dev_t); |
54 | extern int cifs_mkdir(struct inode *, struct dentry *, int); | 54 | extern int cifs_mkdir(struct inode *, struct dentry *, umode_t); |
55 | extern int cifs_rmdir(struct inode *, struct dentry *); | 55 | extern int cifs_rmdir(struct inode *, struct dentry *); |
56 | extern int cifs_rename(struct inode *, struct dentry *, struct inode *, | 56 | extern int cifs_rename(struct inode *, struct dentry *, struct inode *, |
57 | struct dentry *); | 57 | struct dentry *); |
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index e851d5b8931e..a5f54b7d9822 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -1264,7 +1264,7 @@ unlink_out: | |||
1264 | return rc; | 1264 | return rc; |
1265 | } | 1265 | } |
1266 | 1266 | ||
1267 | int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode) | 1267 | int cifs_mkdir(struct inode *inode, struct dentry *direntry, umode_t mode) |
1268 | { | 1268 | { |
1269 | int rc = 0, tmprc; | 1269 | int rc = 0, tmprc; |
1270 | int xid; | 1270 | int xid; |
@@ -1275,7 +1275,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode) | |||
1275 | struct inode *newinode = NULL; | 1275 | struct inode *newinode = NULL; |
1276 | struct cifs_fattr fattr; | 1276 | struct cifs_fattr fattr; |
1277 | 1277 | ||
1278 | cFYI(1, "In cifs_mkdir, mode = 0x%x inode = 0x%p", mode, inode); | 1278 | cFYI(1, "In cifs_mkdir, mode = 0x%hx inode = 0x%p", mode, inode); |
1279 | 1279 | ||
1280 | cifs_sb = CIFS_SB(inode->i_sb); | 1280 | cifs_sb = CIFS_SB(inode->i_sb); |
1281 | tlink = cifs_sb_tlink(cifs_sb); | 1281 | tlink = cifs_sb_tlink(cifs_sb); |