Commit 86bc704db0ab7e69230f79bc7d124e063259abc6
1 parent
3a5fba19b0
Exists in
master
and in
20 other branches
switch posix_acl_chmod() to umode_t
again, that's what all callers pass to it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 2 changed files with 3 additions and 3 deletions Side-by-side Diff
fs/posix_acl.c
... | ... | @@ -336,7 +336,7 @@ |
336 | 336 | /* |
337 | 337 | * Modify the ACL for the chmod syscall. |
338 | 338 | */ |
339 | -static int posix_acl_chmod_masq(struct posix_acl *acl, mode_t mode) | |
339 | +static int posix_acl_chmod_masq(struct posix_acl *acl, umode_t mode) | |
340 | 340 | { |
341 | 341 | struct posix_acl_entry *group_obj = NULL, *mask_obj = NULL; |
342 | 342 | struct posix_acl_entry *pa, *pe; |
... | ... | @@ -400,7 +400,7 @@ |
400 | 400 | EXPORT_SYMBOL(posix_acl_create); |
401 | 401 | |
402 | 402 | int |
403 | -posix_acl_chmod(struct posix_acl **acl, gfp_t gfp, mode_t mode) | |
403 | +posix_acl_chmod(struct posix_acl **acl, gfp_t gfp, umode_t mode) | |
404 | 404 | { |
405 | 405 | struct posix_acl *clone = posix_acl_clone(*acl, gfp); |
406 | 406 | int err = -ENOMEM; |
include/linux/posix_acl.h
... | ... | @@ -78,7 +78,7 @@ |
78 | 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 | -extern int posix_acl_chmod(struct posix_acl **, gfp_t, mode_t); | |
81 | +extern int posix_acl_chmod(struct posix_acl **, gfp_t, umode_t); | |
82 | 82 | |
83 | 83 | extern struct posix_acl *get_posix_acl(struct inode *, int); |
84 | 84 | extern int set_posix_acl(struct inode *, int, struct posix_acl *); |