diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-23 19:01:48 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-08-01 02:10:20 -0400 |
commit | 3a5fba19b080b365d67866db38e32e6a4a2089e8 (patch) | |
tree | bbca7e67f502e1828ca9c897ecc883f879e7743e | |
parent | d6952123b53cc8b334df69bba2cd0063b0d88f68 (diff) |
switch posix_acl_from_mode() to umode_t
... seeing that this is what all callers pass to it anyway.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/posix_acl.c | 2 | ||||
-rw-r--r-- | include/linux/posix_acl.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/posix_acl.c b/fs/posix_acl.c index 3d943be6761c..4e16e8001982 100644 --- a/fs/posix_acl.c +++ b/fs/posix_acl.c | |||
@@ -188,7 +188,7 @@ posix_acl_equiv_mode(const struct posix_acl *acl, umode_t *mode_p) | |||
188 | * Create an ACL representing the file mode permission bits of an inode. | 188 | * Create an ACL representing the file mode permission bits of an inode. |
189 | */ | 189 | */ |
190 | struct posix_acl * | 190 | struct posix_acl * |
191 | posix_acl_from_mode(mode_t mode, gfp_t flags) | 191 | posix_acl_from_mode(umode_t mode, gfp_t flags) |
192 | { | 192 | { |
193 | struct posix_acl *acl = posix_acl_alloc(3, flags); | 193 | struct posix_acl *acl = posix_acl_alloc(3, flags); |
194 | if (!acl) | 194 | if (!acl) |
diff --git a/include/linux/posix_acl.h b/include/linux/posix_acl.h index 529c32ad58c0..16ecfb485d28 100644 --- a/include/linux/posix_acl.h +++ b/include/linux/posix_acl.h | |||
@@ -75,7 +75,7 @@ extern void posix_acl_init(struct posix_acl *, int); | |||
75 | extern struct posix_acl *posix_acl_alloc(int, gfp_t); | 75 | extern struct posix_acl *posix_acl_alloc(int, gfp_t); |
76 | extern int posix_acl_valid(const struct posix_acl *); | 76 | extern int posix_acl_valid(const struct posix_acl *); |
77 | extern int posix_acl_permission(struct inode *, const struct posix_acl *, int); | 77 | extern int posix_acl_permission(struct inode *, const struct posix_acl *, int); |
78 | extern struct posix_acl *posix_acl_from_mode(mode_t, gfp_t); | 78 | extern struct posix_acl *posix_acl_from_mode(umode_t, gfp_t); |
79 | extern int posix_acl_equiv_mode(const struct posix_acl *, umode_t *); | 79 | extern int posix_acl_equiv_mode(const struct posix_acl *, umode_t *); |
80 | extern int posix_acl_create(struct posix_acl **, gfp_t, umode_t *); | 80 | extern int posix_acl_create(struct posix_acl **, gfp_t, umode_t *); |
81 | extern int posix_acl_chmod(struct posix_acl **, gfp_t, mode_t); | 81 | extern int posix_acl_chmod(struct posix_acl **, gfp_t, mode_t); |