btrfs: introduce BTRFS_MAX_ITEM_SIZE
authorJeff Mahoney <jeffm@suse.com>
Wed, 15 Jun 2016 14:25:38 +0000 (10:25 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Jul 2016 11:54:24 +0000 (13:54 +0200)
commit14a1e067b45614d6236e3c82b36f62caef44ac62
tree2efadf6e036988c7b3f9d3d8e120b76db51b29e8
parent0c83b62e2222a8872f0b65d50540fdfa53b675ff
btrfs: introduce BTRFS_MAX_ITEM_SIZE

We use BTRFS_LEAF_DATA_SIZE - sizeof(struct btrfs_item) in
several places.  This introduces a BTRFS_MAX_ITEM_SIZE macro to do the
same.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/file-item.c
fs/btrfs/volumes.c