mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-22 11:04:50 -05:00
btrfs: update comment for reservation of metadata space for delayed items
The second comment at btrfs_delayed_item_reserve_metadata() refers to a field named "index_items_size" of a delayed inode, however that field does not exists - it existed in a previous patch version, but then it split into the fields "curr_index_batch_size" and "index_item_leaves" in the final patch version that was picked. So update the comment. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
committed by
David Sterba
parent
401644852d
commit
01fc062bd0
@@ -517,7 +517,7 @@ static int btrfs_delayed_item_reserve_metadata(struct btrfs_trans_handle *trans,
|
||||
/*
|
||||
* For insertions we track reserved metadata space by accounting
|
||||
* for the number of leaves that will be used, based on the delayed
|
||||
* node's index_items_size field.
|
||||
* node's curr_index_batch_size and index_item_leaves fields.
|
||||
*/
|
||||
if (item->type == BTRFS_DELAYED_DELETION_ITEM)
|
||||
item->bytes_reserved = num_bytes;
|
||||
|
||||
Reference in New Issue
Block a user