• E
    ext4: fix free space estimate in ext4_nonda_switch() · 5c1ff336
    Eric Whitney 提交于
    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: NEric Whitney <enwlinux@gmail.com>
    Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
    5c1ff336
inode.c 151.0 KB