diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 582bbf40c559..f6c5c7ec5a12 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1283,7 +1283,8 @@ static int f2fs_statfs_project(struct super_block *sb, limit >>= sb->s_blocksize_bits; if (limit && buf->f_blocks > limit) { - curblock = dquot->dq_dqb.dqb_curspace >> sb->s_blocksize_bits; + curblock = (dquot->dq_dqb.dqb_curspace + + dquot->dq_dqb.dqb_rsvspace) >> sb->s_blocksize_bits; buf->f_blocks = limit; buf->f_bfree = buf->f_bavail = (buf->f_blocks > curblock) ?