diff options
| author | Filipe Manana <[email protected]> | 2023-08-28 07:38:36 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-10-12 14:44:02 +0000 |
| commit | 01fc062bd0e6e0e06d09c7ce22dc51007dd1afa5 (patch) | |
| tree | 719d97611f731dc3569fe47ba92a3aeebb201993 /fs/btrfs/delayed-inode.c | |
| parent | Merge tag 'fs_for_v6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff) | |
| download | kernel-01fc062bd0e6e0e06d09c7ce22dc51007dd1afa5.tar.gz kernel-01fc062bd0e6e0e06d09c7ce22dc51007dd1afa5.zip | |
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 <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/delayed-inode.c')
| -rw-r--r-- | fs/btrfs/delayed-inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c index 90aaedce1548..dccb8a1ae460 100644 --- a/fs/btrfs/delayed-inode.c +++ b/fs/btrfs/delayed-inode.c @@ -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; |
