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 /include/linux/fs.h | |
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 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index cec429d76ab0..3f7bd8b12e37 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1517,7 +1517,7 @@ extern void unlock_super(struct super_block *); | |||
1517 | * VFS helper functions.. | 1517 | * VFS helper functions.. |
1518 | */ | 1518 | */ |
1519 | extern int vfs_create(struct inode *, struct dentry *, int, struct nameidata *); | 1519 | extern int vfs_create(struct inode *, struct dentry *, int, struct nameidata *); |
1520 | extern int vfs_mkdir(struct inode *, struct dentry *, int); | 1520 | extern int vfs_mkdir(struct inode *, struct dentry *, umode_t); |
1521 | extern int vfs_mknod(struct inode *, struct dentry *, int, dev_t); | 1521 | extern int vfs_mknod(struct inode *, struct dentry *, int, dev_t); |
1522 | extern int vfs_symlink(struct inode *, struct dentry *, const char *); | 1522 | extern int vfs_symlink(struct inode *, struct dentry *, const char *); |
1523 | extern int vfs_link(struct dentry *, struct inode *, struct dentry *); | 1523 | extern int vfs_link(struct dentry *, struct inode *, struct dentry *); |
@@ -1623,7 +1623,7 @@ struct inode_operations { | |||
1623 | int (*link) (struct dentry *,struct inode *,struct dentry *); | 1623 | int (*link) (struct dentry *,struct inode *,struct dentry *); |
1624 | int (*unlink) (struct inode *,struct dentry *); | 1624 | int (*unlink) (struct inode *,struct dentry *); |
1625 | int (*symlink) (struct inode *,struct dentry *,const char *); | 1625 | int (*symlink) (struct inode *,struct dentry *,const char *); |
1626 | int (*mkdir) (struct inode *,struct dentry *,int); | 1626 | int (*mkdir) (struct inode *,struct dentry *,umode_t); |
1627 | int (*rmdir) (struct inode *,struct dentry *); | 1627 | int (*rmdir) (struct inode *,struct dentry *); |
1628 | int (*mknod) (struct inode *,struct dentry *,int,dev_t); | 1628 | int (*mknod) (struct inode *,struct dentry *,int,dev_t); |
1629 | int (*rename) (struct inode *, struct dentry *, | 1629 | int (*rename) (struct inode *, struct dentry *, |