diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2019-10-07 21:50:38 -0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-11-18 12:46:54 +0100 |
commit | a9143bd31c6ab52f6a320a1a4254f2a2934610b1 (patch) | |
tree | 6dc28d3a3edd91265f356fb7c539bc0e43400e47 /fs/btrfs/block-group.c | |
parent | c06631b0d8a4236fb45667de60880b037863de56 (diff) | |
download | lwn-a9143bd31c6ab52f6a320a1a4254f2a2934610b1.tar.gz lwn-a9143bd31c6ab52f6a320a1a4254f2a2934610b1.zip |
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.
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/block-group.c')
-rw-r--r-- | fs/btrfs/block-group.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/block-group.c b/fs/btrfs/block-group.c index 53e08f925260..384659dc7818 100644 --- a/fs/btrfs/block-group.c +++ b/fs/btrfs/block-group.c @@ -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) { |