summaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-08 14:28:47 +0300
committerDavid Sterba <dsterba@suse.com>2019-11-18 14:46:54 +0300
commit67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9 (patch)
tree0dad12d2899aded886ec1ca0a5592a71365c7997 /fs/btrfs/disk-io.c
parentf7bddf1e27d18fbc7d3e3056ba449cfbe4e20b0a (diff)
downloadlinux-67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9.tar.xz
btrfs: opencode extent_buffer_get
The helper is trivial and we can understand what the atomic_inc on something named refs does. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index f54a4782d18c..43e14a17e3f4 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -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)