diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 14f033e1ab42..9e53a5a00f8d 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1216,7 +1216,8 @@ static int f2fs_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_type = F2FS_SUPER_MAGIC; buf->f_bsize = sbi->blocksize; - buf->f_blocks = total_count - start_count; + /* f_blocks should not include overhead of filesystem */ + buf->f_blocks = user_block_count; buf->f_bfree = user_block_count - valid_user_blocks(sbi) - sbi->current_reserved_blocks; if (unlikely(buf->f_bfree <= sbi->unusable_block_count))