ocfs2: add quota call to ocfs2_remove_btree_range()
commitfd4ef231962ab44fd1004e87f9d7c6809f00cd64
authorMark Fasheh <mfasheh@suse.com>
Thu, 29 Jan 2009 23:06:21 +0000 (29 15:06 -0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 2 Feb 2009 22:20:20 +0000 (2 14:20 -0800)
tree7a79939e1a5c84a41e1a7063fbe2eb68848c9a25
parenta4b91965d39d5d53b470d6aa62cba155a6f3ffe1
ocfs2: add quota call to ocfs2_remove_btree_range()

We weren't reclaiming the clusters which get free'd from this function,
so any user punching holes in a file would still have those bytes accounted
against him/her. Add the call to vfs_dq_free_space_nodirty() to fix this.
Interestingly enough, the journal credits calculation already took this into
account.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Acked-by: Jan Kara <jack@suse.cz>
fs/ocfs2/alloc.c