diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 970a22a04c94..bf94531f4486 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -435,10 +435,8 @@ struct btrfs_file_private { void *filldir_buf; }; - static inline u32 BTRFS_LEAF_DATA_SIZE(const struct btrfs_fs_info *info) { - return info->nodesize - sizeof(struct btrfs_header); }