Use buffer io to test xfs mount point: cp file1M /mnt -->just check fdblocks sync -->find suiteable AG, agf->agf_freeblks & agf->agf_longest fdblocks may not be correct, if hackers use xfs_db to modify it, always init fdblocks in mount, also avoid f_bfree overflow. Zheng Bin (2): xfs: always init fdblocks in mount xfs: avoid f_bfree overflow fs/xfs/xfs_mount.c | 39 ++++++--------------------------------- fs/xfs/xfs_super.c | 3 ++- 2 files changed, 8 insertions(+), 34 deletions(-) -- 2.7.4