]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe4532b3c42364f681022d3f749bd21ebdf7265d
tree0a107f919605f68335bf55176b062facebcd51c9
parentaa868f6959bb34e9128f9d9482e3f35d98803b57
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