The file fstab.qcom is located in "/ system / vendor / etc /" (Android 8) this is responsible for checking the partitions in the boot "system, data, cachr, boot etc" basically there are the variables that would occupy the kernel to mount the partitions (fs tipe, mount flags, mount point etc.
The only thing that needs to be done so that you can boot the computer with the partition in f2fs is to edit the file a bit
"/ dev / block / bootdevice / by-name / cache / cache ext4 rw, nosuid, nodev, noatime, barrier = 1, data = ordered wait, check, formattable"
"/ dev / block / bootdevice / by-name / cache / cache f2fs rw, nosuid, nodev, wait noatime, check, formattable"
Note that only changed from ext4 to f2fs and removed barrier = 1, data = ordered, if you do not delete these 2 options the computer will not start, it will remain stuck in the bootlogo
Now you just have to restart in twrp and change the file system to f2fs restart and it should work.
And that would be all, quite easy truth xD I'm pretty green in this the truth but someone to serve this information.
Note: you can do the same with the system partition only if being honest ext4 is a much better option for a read-only partition.
That's all thanks for taking the trouble to read, I leave screenshot of what I raise, by the way I speak Spanish and I have to use the translator to publish this xd sorry.