summaryrefslogtreecommitdiff
path: root/libbcachefs/acl.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-10-05 14:41:44 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-10-08 10:25:33 -0800
commit85ee972555948337bb1a58f0702a4da95db6758f (patch)
tree34f13bce6d9ad221593a45d3ee3b489b777cba04 /libbcachefs/acl.c
parente7c2bb91bce30a987c8c4e2875f2c63e887d3aa5 (diff)
Update bcachefs sources to e82e656279 bcachefs: Cleanups for building in userspace
Diffstat (limited to 'libbcachefs/acl.c')
-rw-r--r--libbcachefs/acl.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libbcachefs/acl.c b/libbcachefs/acl.c
index 6fcac72c..690f4b5b 100644
--- a/libbcachefs/acl.c
+++ b/libbcachefs/acl.c
@@ -1,9 +1,12 @@
+#ifndef NO_BCACHEFS_FS
+
#include "bcachefs.h"
-#include <linux/init.h>
+#include <linux/fs.h>
+#include <linux/posix_acl.h>
+#include <linux/posix_acl_xattr.h>
#include <linux/sched.h>
#include <linux/slab.h>
-#include <linux/fs.h>
#include "xattr.h"
#include "acl.h"
@@ -223,3 +226,5 @@ int bch2_set_acl(struct inode *inode, struct posix_acl *acl, int type)
return ret;
}
+
+#endif /* NO_BCACHEFS_FS */