summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 950e4ee6b66e..1d46ceec1fc0 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -150,13 +150,13 @@ struct btrfs_header {
150 sizeof(struct btrfs_key_ptr)) 150 sizeof(struct btrfs_key_ptr))
151#define __BTRFS_LEAF_DATA_SIZE(bs) ((bs) - sizeof(struct btrfs_header)) 151#define __BTRFS_LEAF_DATA_SIZE(bs) ((bs) - sizeof(struct btrfs_header))
152#define BTRFS_LEAF_DATA_SIZE(r) (__BTRFS_LEAF_DATA_SIZE(r->nodesize)) 152#define BTRFS_LEAF_DATA_SIZE(r) (__BTRFS_LEAF_DATA_SIZE(r->nodesize))
153#define BTRFS_MAX_ITEM_SIZE(r) \
154 (BTRFS_LEAF_DATA_SIZE(r) - sizeof(struct btrfs_item))
153#define BTRFS_FILE_EXTENT_INLINE_DATA_START \ 155#define BTRFS_FILE_EXTENT_INLINE_DATA_START \
154 (offsetof(struct btrfs_file_extent_item, disk_bytenr)) 156 (offsetof(struct btrfs_file_extent_item, disk_bytenr))
155#define BTRFS_MAX_INLINE_DATA_SIZE(r) (BTRFS_LEAF_DATA_SIZE(r) - \ 157#define BTRFS_MAX_INLINE_DATA_SIZE(r) (BTRFS_MAX_ITEM_SIZE(r) - \
156 sizeof(struct btrfs_item) - \
157 BTRFS_FILE_EXTENT_INLINE_DATA_START) 158 BTRFS_FILE_EXTENT_INLINE_DATA_START)
158#define BTRFS_MAX_XATTR_SIZE(r) (BTRFS_LEAF_DATA_SIZE(r) - \ 159#define BTRFS_MAX_XATTR_SIZE(r) (BTRFS_MAX_ITEM_SIZE(r) - \
159 sizeof(struct btrfs_item) -\
160 sizeof(struct btrfs_dir_item)) 160 sizeof(struct btrfs_dir_item))
161 161
162 162