This guide helps to configure the hibernation on a default Fedora34 installation by using a swap file. The Fedora34 installation comes with btrfs as default filesystem. Also, it comes with a zram swap device:
$ swapon
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 8G 0B 100