summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba2017-06-02 17:48:13 +0200
committerDavid Sterba2017-06-19 18:26:03 +0200
commit8b6c1d56f2f5094b14b22a226b798ca3d186c0e9 (patch)
treecabbffcb5b517d7f26cc5c2e9a389e165a569a96 /fs/btrfs/extent_io.c
parentbtrfs: btrfs_io_bio_alloc never fails, skip error handling (diff)
downloadkernel-qcow2-linux-8b6c1d56f2f5094b14b22a226b798ca3d186c0e9.tar.gz
kernel-qcow2-linux-8b6c1d56f2f5094b14b22a226b798ca3d186c0e9.tar.xz
kernel-qcow2-linux-8b6c1d56f2f5094b14b22a226b798ca3d186c0e9.zip
btrfs: sink gfp parameter to btrfs_bio_clone
All callers pass GFP_NOFS. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index bfcbe8f2818b..d60221103ff4 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2675,13 +2675,13 @@ btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs,
return bio;
}
-struct bio *btrfs_bio_clone(struct bio *bio, gfp_t gfp_mask)
+struct bio *btrfs_bio_clone(struct bio *bio)
{
struct btrfs_io_bio *btrfs_bio;
struct bio *new;
/* Bio allocation backed by a bioset does not fail */
- new = bio_clone_fast(bio, gfp_mask, btrfs_bioset);
+ new = bio_clone_fast(bio, GFP_NOFS, btrfs_bioset);
btrfs_bio = btrfs_io_bio(new);
btrfs_bio->csum = NULL;
btrfs_bio->csum_allocated = NULL;