mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Linux 3.14 compat: posix_acl_{create,chmod}
posix_acl_{create,chmod} is changed to __posix_acl_{create_chmod}
Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2124
This commit is contained in:
committed by
Brian Behlendorf
parent
443c3f7332
commit
408ec0d2e1
@@ -263,9 +263,13 @@ zpl_forget_cached_acl(struct inode *ip, int type) {
|
||||
#define zpl_inode_owner_or_capable(ip) is_owner_or_cap(ip)
|
||||
#endif /* HAVE_INODE_OWNER_OR_CAPABLE */
|
||||
|
||||
#ifndef HAVE_POSIX_ACL_CHMOD
|
||||
#ifndef HAVE___POSIX_ACL_CHMOD
|
||||
#ifdef HAVE_POSIX_ACL_CHMOD
|
||||
#define __posix_acl_chmod(acl, gfp, mode) posix_acl_chmod(acl, gfp, mode)
|
||||
#define __posix_acl_create(acl, gfp, mode) posix_acl_create(acl, gfp, mode)
|
||||
#else
|
||||
static inline int
|
||||
posix_acl_chmod(struct posix_acl **acl, int flags, umode_t umode) {
|
||||
__posix_acl_chmod(struct posix_acl **acl, int flags, umode_t umode) {
|
||||
struct posix_acl *oldacl = *acl;
|
||||
mode_t mode = umode;
|
||||
int error;
|
||||
@@ -286,7 +290,7 @@ posix_acl_chmod(struct posix_acl **acl, int flags, umode_t umode) {
|
||||
}
|
||||
|
||||
static inline int
|
||||
posix_acl_create(struct posix_acl **acl, int flags, umode_t *umodep) {
|
||||
__posix_acl_create(struct posix_acl **acl, int flags, umode_t *umodep) {
|
||||
struct posix_acl *oldacl = *acl;
|
||||
mode_t mode = *umodep;
|
||||
int error;
|
||||
@@ -308,6 +312,7 @@ posix_acl_create(struct posix_acl **acl, int flags, umode_t *umodep) {
|
||||
return (error);
|
||||
}
|
||||
#endif /* HAVE_POSIX_ACL_CHMOD */
|
||||
#endif /* HAVE___POSIX_ACL_CHMOD */
|
||||
|
||||
#ifndef HAVE_CURRENT_UMASK
|
||||
static inline int
|
||||
|
||||
Reference in New Issue
Block a user