quota: check quota reservation on remove_dquot_ref
commit7af9cce8ae467bb2fcf3b0b6be3898835bdb984c
authorDmitry Monakhov <dmonakhov@openvz.org>
Tue, 1 Jun 2010 07:39:48 +0000 (1 11:39 +0400)
committerJan Kara <jack@suse.cz>
Wed, 21 Jul 2010 14:01:46 +0000 (21 16:01 +0200)
treeee72b3f199b775484ad61a984d5cfd5cb34d6de8
parenta9f7f2e74ae0e6a801a2433dc8e9124d73da0cb4
quota: check quota reservation on remove_dquot_ref

Reserved space must being claimed before remove_dquot_ref() for a
given inode. Filesystem is responsible for performing force blocks
allocation in case of dealloc in ->quota_off. Let's add sanity check
for that case. Do it similar to add_dquot_ref().

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c