btrfs: Remove redundant extent_buffer_get in get_old_root
[sfrench/cifs-2.6.git] / fs / btrfs / ctree.c
index 539901fb516503a5767fadd3bd278447a9263800..0c5ece3fe74124e58c546c08e19bfd2e45159dc8 100644 (file)
@@ -1362,7 +1362,6 @@ get_old_root(struct btrfs_root *root, u64 time_seq)
 
        if (!eb)
                return NULL;
 
        if (!eb)
                return NULL;
-       extent_buffer_get(eb);
        btrfs_tree_read_lock(eb);
        if (old_root) {
                btrfs_set_header_bytenr(eb, eb->start);
        btrfs_tree_read_lock(eb);
        if (old_root) {
                btrfs_set_header_bytenr(eb, eb->start);