Hi, in ext4_fill_super, the variables related to statfs should be initialized after journal recovery is completed. otherwise, if a large number of blocks were being allocated before the filesystem crashed, then the blocks and inode counters may become negative during use and report incorrect values to statfs call. Thanks Hongchao
Attachment:
statfs-issue.patch
Description: statfs-issue.patch