summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-12-07 18:52:54 +0100
committerDavid Sterba <dsterba@suse.com>2018-01-22 16:08:19 +0100
commitd810a4be1a625aafb2602c56c1256047f1e27380 (patch)
treeed863dba1c88471617abbe424b57bb631e8cc11e /fs/btrfs/extent_io.c
parent5bedc48a8f9e1d62fb693c4171ffddb990d034f6 (diff)
downloadop-kernel-dev-d810a4be1a625aafb2602c56c1256047f1e27380.zip
op-kernel-dev-d810a4be1a625aafb2602c56c1256047f1e27380.tar.gz
btrfs: add separate helper for unlock_extent_cached with GFP_ATOMIC
There's only one instance where we pass different gfp mask to unlock_extent_cached. Add a separate helper for that and then we can drop the gfp parameter from unlock_extent_cached. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index c405914..8780945 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2493,7 +2493,7 @@ endio_readpage_release_extent(struct extent_io_tree *tree, u64 start, u64 len,
if (uptodate && tree->track_uptodate)
set_extent_uptodate(tree, start, end, &cached, GFP_ATOMIC);
- unlock_extent_cached(tree, start, end, &cached, GFP_ATOMIC);
+ unlock_extent_cached_atomic(tree, start, end, &cached);
}
/*
OpenPOWER on IntegriCloud