path: root/free-space-cache.c
diff options
authorOndrej Kozina <>2016-03-04 14:46:11 +0100
committerDavid Sterba <>2016-03-14 13:42:47 +0100
commit5d23b6a7b0adfbeea78cd15e2257fc1859aed444 (patch)
treecd7648edb42c6311b886a9a797a1d36b74db236c /free-space-cache.c
parent1e8246a0582bfbe34045a6dc665396f327b82d1f (diff)
btrfs-progs: libbtrfs: remove max/min macros from API
kerncompat.h header file is part of libbtrfs API. min/max macros cause conflict while building projects dependant on libbtrfs. Moving those macros to btrfs-progs internal header file fixes the conflict. Signed-off-by: Ondrej Kozina <> Signed-off-by: David Sterba <>
Diffstat (limited to 'free-space-cache.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/free-space-cache.c b/free-space-cache.c
index d10a5f51..357d69e7 100644
--- a/free-space-cache.c
+++ b/free-space-cache.c
@@ -24,6 +24,7 @@
#include "extent_io.h"
#include "crc32c.h"
#include "bitops.h"
+#include "internal.h"
* Kernel always uses PAGE_CACHE_SIZE for sectorsize, but we don't have