summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-08 13:28:47 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:54 +0100
commit67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9 (patch)
tree0dad12d2899aded886ec1ca0a5592a71365c7997 /fs/btrfs/extent_io.h
parentbtrfs: Avoid getting stuck during cyclic writebacks (diff)
downloadlinux-67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9.tar.xz
linux-67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9.zip
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/extent_io.h')
-rw-r--r--fs/btrfs/extent_io.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index e22045cef89b..a8551a1f56e2 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -230,11 +230,6 @@ static inline int num_extent_pages(const struct extent_buffer *eb)
(eb->start >> PAGE_SHIFT);
}
-static inline void extent_buffer_get(struct extent_buffer *eb)
-{
- atomic_inc(&eb->refs);
-}
-
static inline int extent_buffer_uptodate(struct extent_buffer *eb)
{
return test_bit(EXTENT_BUFFER_UPTODATE, &eb->bflags);