From: Eric Whitney Date: Tue, 9 Apr 2013 13:27:31 +0000 (-0400) Subject: ext4: fix free space estimate in ext4_nonda_switch() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~83^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c1ff33640293499f9b16450029c9fb4dc06543e;p=pandora-kernel.git ext4: fix free space estimate in ext4_nonda_switch() Values stored in s_freeclusters_counter and s_dirtyclusters_counter are both in cluster units. Remove the cluster to block conversion applied to s_freeclusters_counter causing an inflated estimate of free space because s_dirtyclusters_counter is not similarly converted. Rename free_blocks and dirty_blocks to better reflect the units these variables contain to avoid future confusion. This fix corrects ENOSPC failures for xfstests 127 and 231 on bigalloc file systems. Signed-off-by: Eric Whitney Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed