]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Do not map blocks from local quota file on each write
authorJan Kara <jack@suse.cz>
Tue, 27 Apr 2010 22:22:30 +0000 (00:22 +0200)
committerJan Kara <jack@suse.cz>
Fri, 21 May 2010 17:30:46 +0000 (19:30 +0200)
commitdfbd5672b4a8383b035cc9633047e716398d2f6b
tree21d73e0ed7140c8a61331eacd65157cc0983a16d
parent2316130aab276ef9d15a657ec23c1dbab7433b5b
ocfs2: Do not map blocks from local quota file on each write

There is no need to map offset of local dquot structure to on disk block
in each quota write. It is enough to map it just once and store the physical
block number in quota structure in memory. Moreover this simplifies locking
as we do not have to take ip_alloc_sem from quota write path.

Acked-by: Joel Becker <Joel.Becker@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ocfs2/quota.h
fs/ocfs2/quota_global.c
fs/ocfs2/quota_local.c