]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: move delayed ref head unselection to delayed-ref.c
authorFilipe Manana <fdmanana@suse.com>
Mon, 21 Oct 2024 11:52:55 +0000 (12:52 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:20 +0000 (14:34 +0100)
commit58a4391810d4bc717d87fd446a0c3ad2cb7ea3cd
treec6d2a4c51b471116dc8224f5669ac3dfe1c98f64
parenta98048e10d44569b8d5ba6edcb20992cf57ed816
btrfs: move delayed ref head unselection to delayed-ref.c

The unselect_delayed_ref_head() at extent-tree.c doesn't really belong in
that file as it's a delayed refs specific detail and therefore should be
at delayed-ref.c. Further its inverse, btrfs_select_ref_head(), is at
delayed-ref.c, so it only makes sense to have it there too.

So move unselect_delayed_ref_head() into delayed-ref.c and rename it to
btrfs_unselect_ref_head() so that its name closely matches its inverse
(btrfs_select_ref_head()).

Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.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.c
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c