Ext4 file system corruption after many regular reboots
I am running a test with fedora 25 that requires me to reboot the system many times. The test requires me to use a self-compiled vanilla kernel v4.9. I am doing that with reboot in a systemd script. After many reboots the ext4 file system gets corrupted and I have to do a fsck to fix it.
The problem may be due to a kernel bug, but I likely cannot do anything about it. What can I try to avoid or fix the corruption? For instance, can I enforce an auto-correcting fsck on each reboot?