diff options
author | Josef Bacik <josef@toxicpanda.com> | 2022-10-26 15:08:17 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-12-05 18:00:45 +0100 |
commit | b31bed170d5241d4c9e2fc572f31fc15b274a6c9 (patch) | |
tree | 1a223db25f54ffc79e2ef164b79f40337aa3ab66 /fs/btrfs/ctree.h | |
parent | cb9a10a6504bb35095e97f4839fcf353bf1458ea (diff) | |
download | linux-b31bed170d5241d4c9e2fc572f31fc15b274a6c9.tar.gz linux-b31bed170d5241d4c9e2fc572f31fc15b274a6c9.tar.bz2 linux-b31bed170d5241d4c9e2fc572f31fc15b274a6c9.zip |
btrfs: move btrfs_chunk_item_size out of ctree.h
This is used by the volumes code and the tree checker code. We want to
maintain inline however, so simply move it to volumes.h.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 09005bd9bfef..1e0944c37547 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -54,13 +54,6 @@ struct btrfs_balance_control; struct btrfs_delayed_root; struct reloc_control; -static inline unsigned long btrfs_chunk_item_size(int num_stripes) -{ - BUG_ON(num_stripes == 0); - return sizeof(struct btrfs_chunk) + - sizeof(struct btrfs_stripe) * (num_stripes - 1); -} - /* Read ahead values for struct btrfs_path.reada */ enum { READA_NONE, |