Re: [PATCH 07/15] btrfs: move btrfs_swapfile_pin into volumes.h

David Sterba
2022-09-19T21:27:49Z

On Wed, Sep 14, 2022 at 07:04:43PM -0400, Josef Bacik wrote:
> 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.

Some if the swapfile is in inode and it shares several callbacks for the
inode ops so that's probably the right place but to move things out of
ctree.h it can be in volumes.h as we don't have inode.h yet.