Swap files work, but I wouldn't quite say "you are good to do swap files on btrfs" because the official documentation (the page I linked earlier) says<p>> filesystem - must be only single device<p>> This means swapfiles will have an amplified impact, much larger than the size of the swapfile itself.<p>> Users should be aware of the impact when using swapfiles alongside other data. This is especially discouraged for root filesystem.<p>If a swap file is the only thing that will work with your setup, then it's fine to use one, but if you're at all able to use a swap partition, then that's a far better choice. (Swap files are fine on ext4 and xfs; it's only COW filesystems like btrfs and zfs where they should be avoided.)