]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: update comment for reservation of metadata space for delayed items
authorFilipe Manana <fdmanana@suse.com>
Mon, 28 Aug 2023 07:38:36 +0000 (08:38 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:02 +0000 (16:44 +0200)
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>
fs/btrfs/delayed-inode.c

index 90aaedce1548a47a672ad1803fc4d7ac7b074d3e..dccb8a1ae4603dae7e09e0c356d6d3ceafc64084 100644 (file)
@@ -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;