quota: Add helpers to allow ocfs2 specific quota initialization, freeing and recovery
authorJan Kara <jack@suse.cz>
Fri, 10 Oct 2008 14:12:23 +0000 (16:12 +0200)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:40:22 +0000 (08:40 -0800)
commit3d9ea253a0e73dccaa869888ec2ceb17ea76c810
tree0a107f919605f68335bf55176b062facebcd51c9
parent571b46e40bebb0d57130ca24c4a84dfd553adb91
quota: Add helpers to allow ocfs2 specific quota initialization, freeing and recovery

OCFS2 needs to peek whether quota structure is already in memory so
that it can avoid expensive cluster locking in that case. Similarly
when freeing dquots, it checks whether it is the last quota structure
user or not. Finally, it needs to get reference to dquot structure for
specified id and quota type when recovering quota file after crash.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/dquot.c
include/linux/quotaops.h