btrfs: compression: Add linux/sizes.h for compression.h
authorQu Wenruo <wqu@suse.com>
Thu, 17 May 2018 05:52:22 +0000 (13:52 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 29 May 2018 16:13:00 +0000 (18:13 +0200)
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 <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.h

index cc605f7b23fbf3bf0f0ed56ac625daa9982b149a..ddda9b80bf2044edc3ae210bb401ce8e728fdbe2 100644 (file)
@@ -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