From: Tao Ma Date: Mon, 24 Aug 2009 03:13:37 +0000 (+0800) Subject: ocfs2: Add refcount tree lock mechanism. X-Git-Tag: v2.6.32-rc1~173^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=374a263e790c4de85844283c098810a92985f623;p=pandora-kernel.git ocfs2: Add refcount tree lock mechanism. Implement locking around struct ocfs2_refcount_tree. This protects all read/write operations on refcount trees. ocfs2_refcount_tree has its own lock and its own caching_info, protecting buffers among multiple nodes. User must call ocfs2_lock_refcount_tree before his operation on the tree and unlock it after that. ocfs2_refcount_trees are referenced by the block number of the refcount tree root block, So we create an rb-tree on the ocfs2_super to look them up. Signed-off-by: Tao Ma --- Reading git-diff-tree failed