diff options
author | Yang Xu <xuyang2018.jy@fujitsu.com> | 2022-07-28 05:49:24 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2022-07-28 14:24:51 +0300 |
commit | ded536561a3674327dfa4bb389085705cae22b8a (patch) | |
tree | 606bacd26903c12cc9e9fb43f79e284d220819f1 /fs/overlayfs/inode.c | |
parent | 9c5dd8034e3544d139c2531e58d3ca41bbf343dd (diff) | |
download | linux-ded536561a3674327dfa4bb389085705cae22b8a.tar.xz |
ovl: improve ovl_get_acl() if POSIX ACL support is off
Provide a proper stub for the !CONFIG_FS_POSIX_ACL case.
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/inode.c')
-rw-r--r-- | fs/overlayfs/inode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c index 492eddeb481f..beef5e2ff563 100644 --- a/fs/overlayfs/inode.c +++ b/fs/overlayfs/inode.c @@ -454,13 +454,14 @@ ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size) return res; } +#ifdef CONFIG_FS_POSIX_ACL struct posix_acl *ovl_get_acl(struct inode *inode, int type, bool rcu) { struct inode *realinode = ovl_inode_real(inode); const struct cred *old_cred; struct posix_acl *acl; - if (!IS_ENABLED(CONFIG_FS_POSIX_ACL) || !IS_POSIXACL(realinode)) + if (!IS_POSIXACL(realinode)) return NULL; if (rcu) @@ -472,6 +473,7 @@ struct posix_acl *ovl_get_acl(struct inode *inode, int type, bool rcu) return acl; } +#endif int ovl_update_time(struct inode *inode, struct timespec64 *ts, int flags) { |