From: Joel Becker Date: Thu, 29 Mar 2007 01:27:07 +0000 (-0700) Subject: ocfs2: Wrap access of directory allocations with ip_alloc_sem. X-Git-Tag: v2.6.22-rc1~1033^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee19a77956cb65c5da54d85a5efefe50b39fa6e5;p=pandora-kernel.git ocfs2: Wrap access of directory allocations with ip_alloc_sem. OCFS2_I(inode)->ip_alloc_sem is a read-write semaphore protecting local concurrent access of ocfs2 inodes. However, ocfs2 directories were not taking the semaphore while they accessed or modified the allocation tree. ocfs2_extend_dir() needs to take the semaphore in a write mode when it adds to the allocation. All other directory users get there via ocfs2_bread(), which takes the semaphore in read mode. Signed-off-by: Joel Becker Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed