btrfs: move btrfs_swapfile_pin into volumes.h
authorJosef Bacik <josef@toxicpanda.com>
Wed, 14 Sep 2022 23:04:43 +0000 (19:04 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:06 +0000 (12:28 +0200)
commit2103da3b0e3a3a4846c74438ff44258e68567127
tree3ecd868cf0ae66e09e4da574cc550ce8ea3c3897
parentc2e79e865b87c2920a3cd39de69c35f2bc758a51
btrfs: move btrfs_swapfile_pin into volumes.h

This isn't a great spot for this, but one of the swapfile helper
functions is in volumes.c, so move the struct to volumes.h.  In the
future when we have better separation of code there will be a more
natural spot for this.

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