aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2018-02-07 09:19:10 +0000
committerDavid Sterba <[email protected]>2018-03-26 13:09:29 +0000
commitaf89e0dc2ce3177d07c4af4028b8a7b88733d07e (patch)
tree68ff5d58bf2799696d63122bcb6b24b3ef256f88 /fs/btrfs/dev-replace.c
parentBtrfs: extent map selftest: add missing void parameter to btrfs_test_extent_map (diff)
downloadkernel-af89e0dc2ce3177d07c4af4028b8a7b88733d07e.tar.gz
kernel-af89e0dc2ce3177d07c4af4028b8a7b88733d07e.zip
btrfs: Don't hardcode the csum size in btrfs_ordered_sum_size
Currently the function uses a hardcoded value for the checksum size of a sector. This is fine, given that we currently support only a single algorithm, whose checksum is 4 bytes == sizeof(u32). Despite not having other algorithms, btrfs' design supports using a different algorithm whith different space requirements. To future-proof the code query the size of the currently used algorithm from the in-memory copy of the super block. No functional changes. Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Reviewed-by: Su Yue <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions