Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>

authored by

Qu Wenruo and committed by
David Sterba
d5c1d68f b5c40d59

+2
+2
fs/btrfs/compression.h
··· 6 6 #ifndef BTRFS_COMPRESSION_H 7 7 #define BTRFS_COMPRESSION_H 8 8 9 + #include <linux/sizes.h> 10 + 9 11 /* 10 12 * We want to make sure that amount of RAM required to uncompress an extent is 11 13 * reasonable, so we limit the total size in ram of a compressed extent to