btrfs: block-group: Rework documentation of check_system_chunk function
PATCH 1/1 btrfs: block-group: Rework documentation of check_system_chunk function
Commit 4617ea3a52cf (" Btrfs: fix necessary chunk tree space calculation when allocating a chunk") removed the is_allocation argument from check_system_chunk, since the formula for reserving the necessary space for allocation or removing a chunk would be the same.
So, rework the comment by removing the mention of is_allocation argument.
--- fs/btrfs/block-group.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
fs/btrfs/block-group.c +1 -3
@@ -2987,9 +2987,7 @@ static u64 get_profile_num_devs(struct btrfs_fs_info *fs_info, u64 type) }/* -* If @is_allocation is true, reserve space in the system space info necessary -* for allocating a chunk, otherwise if it's false, reserve space necessary for -* removing a chunk. +* Reserve space in the system space for allocating or removing a chunk */ void check_system_chunk (struct btrfs_trans_handle *trans,u64 type) {
--
2.23.0
Quoted 9 lines · Marcos Paulo de Souza
Commit
4617ea3a52cf(" Btrfs: fix necessary chunk tree space calculation when allocating a chunk") removed theis_allocationargument fromcheck_system_chunk, since the formula for reserving the necessary space for allocation or removing a chunk would be the same.So, rework the comment by removing the mention of
is_allocationargument.Signed-off-by Marcos Paulo de Souza <[email protected]>
Quoted 23 lines
--- fs/btrfs/block-group.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)fs/btrfs/block-group.c +1
-4@@ -2987,9 +2987,7 @@ static u64 get_profile_num_devs(struct btrfs_fs_info *fs_info, u64 type) }/* -* If @is_allocation is true, reserve space in the system space info necessary -* for allocating a chunk, otherwise if it's false, reserve space necessary for -* removing a chunk. +* Reserve space in the system space for allocating or removing a chunk */ void check_system_chunk (struct btrfs_trans_handle *trans,u64 type) { --2.23.0
Quoted 9 lines · Marcos Paulo de Souza
Commit
4617ea3a52cf(" Btrfs: fix necessary chunk tree space calculation when allocating a chunk") removed theis_allocationargument fromcheck_system_chunk, since the formula for reserving the necessary space for allocation or removing a chunk would be the same.So, rework the comment by removing the mention of
is_allocationargument.Signed-off-by Marcos Paulo de Souza <[email protected]>
Added to misc-next, thanks.