]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: update stale comment for struct btrfs_delayed_ref_node::add_list
authorFilipe Manana <fdmanana@suse.com>
Mon, 4 Nov 2024 11:50:14 +0000 (11:50 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:22 +0000 (14:34 +0100)
The comment refers to a list in the respective delayed ref head that no
longer exists (ref_list), it was replaced with a rbtree (ref_tree) in
commit 0e0adbcfdc90 ("btrfs: track refs in a rb_tree instead of a list").

So update the stale comment to refer to the rbtree instead of the old
list.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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-ref.h

index 4cb7d4475808c1eec3371c216f50677300472849..611fb3388f82bdfe4775c9a2f21323c021ff3e58 100644 (file)
@@ -61,7 +61,8 @@ struct btrfs_delayed_ref_node {
        /*
         * If action is BTRFS_ADD_DELAYED_REF, also link this node to
         * ref_head->ref_add_list, then we do not need to iterate the
-        * whole ref_head->ref_list to find BTRFS_ADD_DELAYED_REF nodes.
+        * refs rbtree in the corresponding delayed ref head
+        * (struct btrfs_delayed_ref_head::ref_tree).
         */
        struct list_head add_list;