btrfs: move lockdep class helpers to locking.c
authorJosef Bacik <josef@toxicpanda.com>
Tue, 26 Jul 2022 20:24:03 +0000 (16:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Sep 2022 08:30:12 +0000 (10:30 +0200)
commit98dfad7fb6882276c08be5e451693410c58fdae1
tree3028c963dac9798cb507661afc64f989ab6286dd
parenta74fc94fb1a9bccef25de11f563e8a77bb1e9a1c
btrfs: move lockdep class helpers to locking.c

[ Upstream commit 0a27a0474d146eb79e09ec88bf0d4229f4cfc1b8 ]

These definitions exist in disk-io.c, which is not related to the
locking.  Move this over to locking.h/c where it makes more sense.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/locking.c
fs/btrfs/locking.h