ext4: don't over-report free space or inodes in statvfs
[ Upstream commit f87d3af7419307ae26e705a2b2db36140db367a2 ] 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: 689c958c ("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:
Sasha Levin <sashal@kernel.org>
Loading