Commit 3a5fba19b080b365d67866db38e32e6a4a2089e8
1 parent
d6952123b5
Exists in
master
and in
20 other branches
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>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
fs/posix_acl.c
... | ... | @@ -188,7 +188,7 @@ |
188 | 188 | * Create an ACL representing the file mode permission bits of an inode. |
189 | 189 | */ |
190 | 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 | 193 | struct posix_acl *acl = posix_acl_alloc(3, flags); |
194 | 194 | if (!acl) |
include/linux/posix_acl.h
... | ... | @@ -75,7 +75,7 @@ |
75 | 75 | extern struct posix_acl *posix_acl_alloc(int, gfp_t); |
76 | 76 | extern int posix_acl_valid(const struct posix_acl *); |
77 | 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 | 79 | extern int posix_acl_equiv_mode(const struct posix_acl *, umode_t *); |
80 | 80 | extern int posix_acl_create(struct posix_acl **, gfp_t, umode_t *); |
81 | 81 | extern int posix_acl_chmod(struct posix_acl **, gfp_t, mode_t); |