summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/scrub.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-12-12 21:43:52 +0100
committerDavid Sterba <dsterba@suse.com>2018-01-22 16:08:19 +0100
commite43bbe5e16d87b40f3b382b3a43b0142d6d1193d (patch)
treeb8033e995b23fe1c45f117d3d35117bc7b58772f /fs/btrfs/scrub.c
parentbtrfs: add separate helper for unlock_extent_cached with GFP_ATOMIC (diff)
downloadlinux-e43bbe5e16d87b40f3b382b3a43b0142d6d1193d.tar.xz
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/scrub.c')
-rw-r--r--fs/btrfs/scrub.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c
index d766c73eb29a..ecfe3118d9dd 100644
--- a/fs/btrfs/scrub.c
+++ b/fs/btrfs/scrub.c
@@ -4468,8 +4468,7 @@ static int check_extent_to_block(struct btrfs_inode *inode, u64 start, u64 len,
free_extent_map(em);
out_unlock:
- unlock_extent_cached(io_tree, lockstart, lockend, &cached_state,
- GFP_NOFS);
+ unlock_extent_cached(io_tree, lockstart, lockend, &cached_state);
return ret;
}