Whamcloud - gitweb
LU-6142 lustre: introduce CONFIG_LUSTRE_FS_POSIX_ACL 85/36085/5
authorNeilBrown <neilb@suse.com>
Mon, 9 Sep 2019 16:45:51 +0000 (12:45 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 20 Sep 2019 07:54:08 +0000 (07:54 +0000)
commit19b2bc9bbc25a94395465fba5900c1f862b5c6a1
treecd62f1e2de43758e256c324b761b780ef44986db
parent7f199dbf0261b89afe0dc8185db4403ae0efdefa
LU-6142 lustre: introduce CONFIG_LUSTRE_FS_POSIX_ACL

Lustre (or any file system) should not conditionally
compile code based on CONFIG_FS_POSIX_ACL.  This config
option enables library support.
A file system can define it's own config option,
which then selects CONFIG_FS_POSIX_ACL (if needed).  It should
act on its own option, not the library one.

This patch makes that change.

While lustre is out-of-tree, it cannot select CONFIG_FS_POSIX_ACL
and must work with the configruation of the kernel it is being built
against. So the new CONFIG_LUSTRE_FS_POSIX_ACL can only be selected
if the based kernel has CONFIG_FS_POSIX_ACL selected. With that
restriction this change becomes little more than an indirection.
However it means that the out-of-tree code can be closer to the
(eventual) in-tree code.

Test-Parameters: trivial

Signed-off-by: NeilBrown <neilb@suse.com>
Change-Id: I3ba283f295d1c7217e7ff9917573be0fe92bb2ca
Reviewed-on: https://review.whamcloud.com/36085
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
22 files changed:
libcfs/include/libcfs/linux/linux-fs.h
lustre/autoconf/lustre-core.m4
lustre/include/lustre_acl.h
lustre/include/lustre_compat.h
lustre/include/lustre_eacl.h
lustre/include/lustre_mdc.h
lustre/include/obd.h
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/xattr.c
lustre/mdc/mdc_request.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_object.c
lustre/mdd/mdd_permission.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_open.c
lustre/obdclass/acl.c
lustre/obdecho/echo_client.c
lustre/ptlrpc/wirehdr.c
lustre/ptlrpc/wiretest.c