mirror of https://gitee.com/openkylin/linux.git
staging: lustre: hide call to Posix ACL in ifdef
A call to forget_cached_acl() was recently added to the lustre file
system, but this is only available when CONFIG_FS_POSIX_ACL is
enabled, otherwise the build now fails with:
lustre/llite/file.c: In function 'll_get_acl':
lustre/llite/file.c:3134:2: error: implicit declaration of function 'forget_cached_acl' [-Werror=implicit-function-declaration]
forget_cached_acl(inode, type);
This adds one more #ifdef for this call, corresponding to the
other 22 such checks for ACL in lustre.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: b788dc51e4
("staging: lustre: llite: drop acl from cache")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
21ca52bb74
commit
ed7bdf5c9c
|
@ -3131,7 +3131,9 @@ struct posix_acl *ll_get_acl(struct inode *inode, int type)
|
||||||
spin_lock(&lli->lli_lock);
|
spin_lock(&lli->lli_lock);
|
||||||
/* VFS' acl_permission_check->check_acl will release the refcount */
|
/* VFS' acl_permission_check->check_acl will release the refcount */
|
||||||
acl = posix_acl_dup(lli->lli_posix_acl);
|
acl = posix_acl_dup(lli->lli_posix_acl);
|
||||||
|
#ifdef CONFIG_FS_POSIX_ACL
|
||||||
forget_cached_acl(inode, type);
|
forget_cached_acl(inode, type);
|
||||||
|
#endif
|
||||||
spin_unlock(&lli->lli_lock);
|
spin_unlock(&lli->lli_lock);
|
||||||
|
|
||||||
return acl;
|
return acl;
|
||||||
|
|
Loading…
Reference in New Issue