summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorDavid Sterba2017-12-12 21:43:52 +0100
committerDavid Sterba2018-01-22 16:08:19 +0100
commite43bbe5e16d87b40f3b382b3a43b0142d6d1193d (patch)
treeb8033e995b23fe1c45f117d3d35117bc7b58772f /fs/btrfs/extent_io.h
parentbtrfs: add separate helper for unlock_extent_cached with GFP_ATOMIC (diff)
downloadkernel-qcow2-linux-e43bbe5e16d87b40f3b382b3a43b0142d6d1193d.tar.gz
kernel-qcow2-linux-e43bbe5e16d87b40f3b382b3a43b0142d6d1193d.tar.xz
kernel-qcow2-linux-e43bbe5e16d87b40f3b382b3a43b0142d6d1193d.zip
btrfs: sink unlock_extent parameter gfp_flags
All callers pass either GFP_NOFS or GFP_KERNEL now, so we can sink the parameter to the function, though we lose some of the slightly better semantics of GFP_KERNEL in some places, it's worth cleaning up the callchains. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r--fs/btrfs/extent_io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index 978351e8e8dc..72e5af2965a8 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -312,10 +312,10 @@ static inline int unlock_extent(struct extent_io_tree *tree, u64 start, u64 end)
}
static inline int unlock_extent_cached(struct extent_io_tree *tree, u64 start,
- u64 end, struct extent_state **cached, gfp_t mask)
+ u64 end, struct extent_state **cached)
{
return __clear_extent_bit(tree, start, end, EXTENT_LOCKED, 1, 0, cached,
- mask, NULL);
+ GFP_NOFS, NULL);
}
static inline int unlock_extent_cached_atomic(struct extent_io_tree *tree,