Skip to content
Commit f6fca391 authored by Stefan Roesch's avatar Stefan Roesch Committed by David Sterba
Browse files

btrfs: store chunk size in space-info struct



The chunk size is stored in the btrfs_space_info structure.  It is
initialized at the start and is then used.

A new API is added to update the current chunk size.  This API is used
to be able to expose the chunk_size as a sysfs setting.

Signed-off-by: default avatarStefan Roesch <shr@fb.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ rename and merge helpers, switch atomic type to u64, style fixes ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 71b68e9e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment