Skip to content
  • Tao Ma's avatar
    ocfs2: Add refcount tree lock mechanism. · 374a263e
    Tao Ma authored
    
    
    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: default avatarTao Ma <tao.ma@oracle.com>
    374a263e