* [PATCH] btrfs: update comment for reservation of metadata space for delayed items
@ 2023-08-28 7:38 fdmanana
2023-08-28 13:27 ` Josef Bacik
2023-09-05 11:06 ` David Sterba
0 siblings, 2 replies; 3+ messages in thread
From: fdmanana @ 2023-08-28 7:38 UTC (permalink / raw)
To: linux-btrfs
From: Filipe Manana <fdmanana@suse.com>
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.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
---
fs/btrfs/delayed-inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c
index 85dcf0024137..08ecb4d0cc45 100644
--- a/fs/btrfs/delayed-inode.c
+++ b/fs/btrfs/delayed-inode.c
@@ -513,7 +513,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;
--
2.40.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: update comment for reservation of metadata space for delayed items
2023-08-28 7:38 [PATCH] btrfs: update comment for reservation of metadata space for delayed items fdmanana
@ 2023-08-28 13:27 ` Josef Bacik
2023-09-05 11:06 ` David Sterba
1 sibling, 0 replies; 3+ messages in thread
From: Josef Bacik @ 2023-08-28 13:27 UTC (permalink / raw)
To: fdmanana; +Cc: linux-btrfs
On Mon, Aug 28, 2023 at 08:38:36AM +0100, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
>
> 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.
>
> Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Thanks,
Josef
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: update comment for reservation of metadata space for delayed items
2023-08-28 7:38 [PATCH] btrfs: update comment for reservation of metadata space for delayed items fdmanana
2023-08-28 13:27 ` Josef Bacik
@ 2023-09-05 11:06 ` David Sterba
1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2023-09-05 11:06 UTC (permalink / raw)
To: fdmanana; +Cc: linux-btrfs
On Mon, Aug 28, 2023 at 08:38:36AM +0100, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
>
> 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.
>
> Signed-off-by: Filipe Manana <fdmanana@suse.com>
Added to misc-next, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-05 16:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-28 7:38 [PATCH] btrfs: update comment for reservation of metadata space for delayed items fdmanana
2023-08-28 13:27 ` Josef Bacik
2023-09-05 11:06 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox