• C
    Btrfs: Start btree concurrency work. · 925baedd
    Chris Mason 提交于
    The allocation trees and the chunk trees are serialized via their own
    dedicated mutexes.  This means allocation location is still not very
    fine grained.
    
    The main FS btree is protected by locks on each block in the btree.  Locks
    are taken top / down, and as processing finishes on a given level of the
    tree, the lock is released after locking the lower level.
    
    The end result of a search is now a path where only the lowest level
    is locked.  Releasing or freeing the path drops any locks held.
    Signed-off-by: NChris Mason <chris.mason@oracle.com>
    925baedd
inode.c 80.1 KB