aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2018-05-17 05:52:22 +0000
committerDavid Sterba <[email protected]>2018-05-29 16:13:00 +0000
commitd5c1d68fdeeecd130d60007522c5db179e47e3d2 (patch)
treee2ead4bde72baf51c49d9f2059be280f327150da /fs/btrfs/compression.h
parentBtrfs: fix clone vs chattr NODATASUM race (diff)
downloadkernel-d5c1d68fdeeecd130d60007522c5db179e47e3d2.tar.gz
kernel-d5c1d68fdeeecd130d60007522c5db179e47e3d2.zip
btrfs: compression: Add linux/sizes.h for compression.h
Since compression.h is using the SZ_* macros, and if some file includes only compression.h without linux/sizes.h, it will cause compile error. One example is lzo.c, if it uses BTRFS_MAX_COMPRESSED. Fix it by adding linux/sizes.h in compression.h Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: Nikolay Borisov <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.h')
-rw-r--r--fs/btrfs/compression.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index cc605f7b23fb..ddda9b80bf20 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -6,6 +6,8 @@
#ifndef BTRFS_COMPRESSION_H
#define BTRFS_COMPRESSION_H
+#include <linux/sizes.h>
+
/*
* We want to make sure that amount of RAM required to uncompress an extent is
* reasonable, so we limit the total size in ram of a compressed extent to