]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
BTRFS: Remove unused node_lock
authorAndi Kleen <ak@linux.intel.com>
Wed, 18 May 2011 00:11:22 +0000 (00:11 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 23 May 2011 17:05:39 +0000 (13:05 -0400)
240f62c8756 replaced the node_lock with rcu_read_lock, but forgot
to remove the actual lock in the data structure. Remove it here.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c

index 8f4b81de3ae2a0ffb21b57080de5649d9a3785ff..f290b98e2fe67547c5e5bc4fece45191dd1bf3bf 100644 (file)
@@ -1088,9 +1088,6 @@ struct btrfs_fs_info {
 struct btrfs_root {
        struct extent_buffer *node;
 
-       /* the node lock is held while changing the node pointer */
-       spinlock_t node_lock;
-
        struct extent_buffer *commit_root;
        struct btrfs_root *log_root;
        struct btrfs_root *reloc_root;
index 228cf36ece8351475d5075f74e15624e4276e112..64b289690f9d533a2cf141cb891f8156d5683354 100644 (file)
@@ -1064,7 +1064,6 @@ static int __setup_root(u32 nodesize, u32 leafsize, u32 sectorsize,
        INIT_LIST_HEAD(&root->dirty_list);
        INIT_LIST_HEAD(&root->orphan_list);
        INIT_LIST_HEAD(&root->root_list);
-       spin_lock_init(&root->node_lock);
        spin_lock_init(&root->orphan_lock);
        spin_lock_init(&root->inode_lock);
        spin_lock_init(&root->accounting_lock);