Commit 01fc062b authored by Filipe Manana's avatar Filipe Manana Committed by David Sterba

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: default avatarJosef Bacik <josef@toxicpanda.com>
Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 40164485
...@@ -517,7 +517,7 @@ static int btrfs_delayed_item_reserve_metadata(struct btrfs_trans_handle *trans, ...@@ -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 insertions we track reserved metadata space by accounting
* for the number of leaves that will be used, based on the delayed * 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) if (item->type == BTRFS_DELAYED_DELETION_ITEM)
item->bytes_reserved = num_bytes; item->bytes_reserved = num_bytes;
......
Markdown is supported
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