diff options
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r-- | fs/btrfs/file-item.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index 6b58d0620e2f..cdbbf85a269b 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c | |||
@@ -27,9 +27,8 @@ | |||
27 | #include "print-tree.h" | 27 | #include "print-tree.h" |
28 | #include "compression.h" | 28 | #include "compression.h" |
29 | 29 | ||
30 | #define __MAX_CSUM_ITEMS(r, size) ((unsigned long)(((BTRFS_LEAF_DATA_SIZE(r) - \ | 30 | #define __MAX_CSUM_ITEMS(r, size) \ |
31 | sizeof(struct btrfs_item) * 2) / \ | 31 | ((unsigned long)(((BTRFS_MAX_ITEM_SIZE(r) * 2) / size) - 1)) |
32 | size) - 1)) | ||
33 | 32 | ||
34 | #define MAX_CSUM_ITEMS(r, size) (min_t(u32, __MAX_CSUM_ITEMS(r, size), \ | 33 | #define MAX_CSUM_ITEMS(r, size) (min_t(u32, __MAX_CSUM_ITEMS(r, size), \ |
35 | PAGE_SIZE)) | 34 | PAGE_SIZE)) |