Do not compile the acl.o target if BCACHEFS_POSIX_ACL is not enabled.
Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
obj-$(CONFIG_BCACHEFS_FS) += bcachefs.o
bcachefs-y := \
- acl.o \
alloc_background.o \
alloc_foreground.o \
bkey.o \
util.o \
varint.o \
xattr.o
+
+bcachefs-$(CONFIG_BCACHEFS_POSIX_ACL) += acl.o
const struct xattr_handler *bch2_xattr_handlers[] = {
&bch_xattr_user_handler,
+#ifdef CONFIG_BCACHEFS_POSIX_ACL
&nop_posix_acl_access,
&nop_posix_acl_default,
+#endif
&bch_xattr_trusted_handler,
&bch_xattr_security_handler,
#ifndef NO_BCACHEFS_FS