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 /ipc | |
| 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 'ipc')
| -rw-r--r-- | ipc/mqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 4e0be364aa36..57ed704d2ca7 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
| @@ -295,7 +295,7 @@ static void mqueue_evict_inode(struct inode *inode) | |||
| 295 | } | 295 | } |
| 296 | 296 | ||
| 297 | static int mqueue_create(struct inode *dir, struct dentry *dentry, | 297 | static int mqueue_create(struct inode *dir, struct dentry *dentry, |
| 298 | int mode, struct nameidata *nd) | 298 | umode_t mode, struct nameidata *nd) |
| 299 | { | 299 | { |
| 300 | struct inode *inode; | 300 | struct inode *inode; |
| 301 | struct mq_attr *attr = dentry->d_fsdata; | 301 | 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) | |||
| 610 | * Invoked when creating a new queue via sys_mq_open | 610 | * Invoked when creating a new queue via sys_mq_open |
| 611 | */ | 611 | */ |
| 612 | static struct file *do_create(struct ipc_namespace *ipc_ns, struct dentry *dir, | 612 | static struct file *do_create(struct ipc_namespace *ipc_ns, struct dentry *dir, |
| 613 | struct dentry *dentry, int oflag, mode_t mode, | 613 | struct dentry *dentry, int oflag, umode_t mode, |
| 614 | struct mq_attr *attr) | 614 | struct mq_attr *attr) |
| 615 | { | 615 | { |
| 616 | const struct cred *cred = current_cred(); | 616 | const struct cred *cred = current_cred(); |
