]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix free space estimate in ext4_nonda_switch()
authorEric Whitney <enwlinux@gmail.com>
Tue, 9 Apr 2013 13:27:31 +0000 (09:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 9 Apr 2013 13:27:31 +0000 (09:27 -0400)
commit7c69fbfc855a025ed0ecd17041ed17173bbefb57
treede77ead0c0cefcda6e24f94a8336d65cc4ade2b9
parent38d97fb500a42b7b82f34d58af1e0bc6ae26fb5b
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 <enwlinux@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c