btrfs: opencode extent_buffer_get
[linux-block.git] / fs / btrfs / disk-io.c
index f54a4782d18cf329fe947a637098599c18b27a72..43e14a17e3f4fd083f59a787381e0ce79ed2eca8 100644 (file)
@@ -610,7 +610,7 @@ static int btree_readpage_end_io_hook(struct btrfs_io_bio *io_bio,
        /* the pending IO might have been the only thing that kept this buffer
         * in memory.  Make sure we have a ref for all this other checks
         */
-       extent_buffer_get(eb);
+       atomic_inc(&eb->refs);
 
        reads_done = atomic_dec_and_test(&eb->io_pages);
        if (!reads_done)