diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index ed5e28f46ae8..aab614b2b84b 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1543,7 +1543,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;