ext4: reserve metadata block for every delayed write
authorLukas Czerner <lczerner@redhat.com>
Mon, 11 Mar 2013 02:50:00 +0000 (22:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Mar 2013 02:50:00 +0000 (22:50 -0400)
commit386ad67c9ac043890121c066186883d1640348a4
tree24f0962f8709cea70091460c5da9c938fdc08c7c
parent232ec8720d4e45405e37144c67053042c6b886d3
ext4: reserve metadata block for every delayed write

Currently we only reserve space (data+metadata) in delayed allocation if
we're allocating from new cluster (which is always in non-bigalloc file
system) which is ok for data blocks, because we reserve the whole cluster.

However we have to reserve metadata for every delayed block we're going
to write because every block could potentially require metedata block
when we need to grow the extent tree.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
fs/ext4/inode.c