ext4: fix reserved cluster accounting at page invalidation time
authorEric Whitney <enwlinux@gmail.com>
Mon, 1 Oct 2018 18:33:24 +0000 (14:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 1 Oct 2018 18:33:24 +0000 (14:33 -0400)
commitf456767d3391e9f7d9d25a2e7241d75676dc19da
treef9288b3c7bc0ee23d160b1bc858fa1d002fa8c96
parent9fe671496b6c286f9033aedfc1718d67721da0ae
ext4: fix reserved cluster accounting at page invalidation time

Add new code to count canceled pending cluster reservations on bigalloc
file systems and to reduce the cluster reservation count on all file
systems using delayed allocation.  This replaces old code in
ext4_da_page_release_reservations that was incorrect.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents_status.c
fs/ext4/inode.c