btrfs: move root node locking helpers to locking.c
authorDavid Sterba <dsterba@suse.com>
Wed, 5 Feb 2020 16:26:51 +0000 (17:26 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:33 +0000 (17:01 +0100)
commitb908c334e7a419e5cd08a45d31284b4a93de3bd7
treeef124663d4e50c3190e44d957bac24c0cc49f7ba
parent0024652895e3479cd0d372f63b57d9581a0bdd38
btrfs: move root node locking helpers to locking.c

The helpers are related to locking so move them there, update comments.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/locking.c