ext4: quota reservation for delayed allocation
commit60e58e0f30e723464c2a7d34b71b8675566c572d
authorMingming Cao <cmm@us.ibm.com>
Thu, 22 Jan 2009 17:13:05 +0000 (22 18:13 +0100)
committerJan Kara <jack@suse.cz>
Thu, 26 Mar 2009 01:18:34 +0000 (26 02:18 +0100)
tree2797ae1bccdad12d53c989a6dccea1c8ffd2bce3
parent643d00ccc311664188c8209bf8b596a30e139c3a
ext4: quota reservation for delayed allocation

Uses quota reservation/claim/release to handle quota properly for delayed
allocation in the three steps: 1) quotas are reserved when data being copied
to cache when block allocation is defered 2) when new blocks are allocated.
reserved quotas are converted to the real allocated quota, 2) over-booked
quotas for metadata blocks are released back.

Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Acked-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/mballoc.c
fs/ext4/super.c