]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: don't over-report free space or inodes in statvfs
authorTheodore Ts'o <tytso@mit.edu>
Fri, 14 Mar 2025 04:38:42 +0000 (00:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:33:43 +0000 (14:33 +0200)
commitc07ec83be7c0c4eabcbf1b6e5497fafa06b398ea
treeb7c6638e9cee87502c264496692ec0f788c0283c
parentcf187601053ecaf671ae645edb898901f81d03e9
ext4: don't over-report free space or inodes in statvfs

commit f87d3af7419307ae26e705a2b2db36140db367a2 upstream.

This fixes an analogus bug that was fixed in xfs in commit
4b8d867ca6e2 ("xfs: don't over-report free space or inodes in
statvfs") where statfs can report misleading / incorrect information
where project quota is enabled, and the free space is less than the
remaining quota.

This commit will resolve a test failure in generic/762 which tests for
this bug.

Cc: stable@kernel.org
Fixes: 689c958cbe6b ("ext4: add project quota support")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c