summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2017-05-20 09:35:40 +0200
committergkostka <kostka.grzegorz@gmail.com>2017-05-20 10:13:09 +0200
commit6f29a7eab37d41058924c6e60bb91d74bf91018d (patch)
tree18cbac3b11ccaea79a8d43943eb2ecff83e96f08 /src
parentdee6a10ab37fef64f47ddfadeae02a9449fb9294 (diff)
ext4_config: add defines allowing disabling xattr and extent modules
Diffstat (limited to 'src')
-rw-r--r--src/ext4_extent.c2
-rw-r--r--src/ext4_xattr.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ext4_extent.c b/src/ext4_extent.c
index 7eb4242..dc56ba7 100644
--- a/src/ext4_extent.c
+++ b/src/ext4_extent.c
@@ -27,6 +27,7 @@
#include <inttypes.h>
#include <stddef.h>
+#if CONFIG_EXTENTS_ENABLE
/*
* used by extent splitting.
*/
@@ -2136,3 +2137,4 @@ out2:
return err;
}
+#endif
diff --git a/src/ext4_xattr.c b/src/ext4_xattr.c
index e434f3e..f8a5778 100644
--- a/src/ext4_xattr.c
+++ b/src/ext4_xattr.c
@@ -35,6 +35,8 @@
#include <stdlib.h>
#include <string.h>
+#if CONFIG_XATTR_ENABLE
+
/**
* @file ext4_xattr.c
* @brief Extended Attribute Manipulation
@@ -1555,6 +1557,8 @@ out:
return ret;
}
+#endif
+
/**
* @}
*/