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>
This commit is contained in:
@@ -295,7 +295,7 @@ static void mqueue_evict_inode(struct inode *inode)
|
||||
}
|
||||
|
||||
static int mqueue_create(struct inode *dir, struct dentry *dentry,
|
||||
int mode, struct nameidata *nd)
|
||||
umode_t mode, struct nameidata *nd)
|
||||
{
|
||||
struct inode *inode;
|
||||
struct mq_attr *attr = dentry->d_fsdata;
|
||||
@@ -610,7 +610,7 @@ static int mq_attr_ok(struct ipc_namespace *ipc_ns, struct mq_attr *attr)
|
||||
* Invoked when creating a new queue via sys_mq_open
|
||||
*/
|
||||
static struct file *do_create(struct ipc_namespace *ipc_ns, struct dentry *dir,
|
||||
struct dentry *dentry, int oflag, mode_t mode,
|
||||
struct dentry *dentry, int oflag, umode_t mode,
|
||||
struct mq_attr *attr)
|
||||
{
|
||||
const struct cred *cred = current_cred();
|
||||
|
Reference in New Issue
Block a user