btrfs: move up backref sharedness cache store and lookup functions
authorFilipe Manana <fdmanana@suse.com>
Tue, 11 Oct 2022 12:17:07 +0000 (13:17 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:39 +0000 (18:00 +0100)
commit583f4ac56254c844cbbc9f23744e1f2efbf42fc7
treec02290c82d32a8f700c092ab86fd4d8bf037c636
parent73e339e6ab74cc3edcd1f1ed3d9b822baf8534e1
btrfs: move up backref sharedness cache store and lookup functions

Move the static functions to lookup and store sharedness check of an
extent buffer to a location above find_all_parents(), because in the
next patch the lookup function will be used by find_all_parents().
The store function is also moved just because it's the counter part
to the lookup function and it's best to have their definitions close
together.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c