diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2017-05-16 10:57:14 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-19 18:25:59 +0200 |
commit | e477094f0d3ce35b30d230bda3f31fc060cfe93b (patch) | |
tree | 2a15ed39cf6ce808e9a34aa1bc9c8c200b4738ba /fs/btrfs/extent_io.c | |
parent | 3c91ee6964114b1a4f54ae6b397c889576d91cf4 (diff) | |
download | lwn-e477094f0d3ce35b30d230bda3f31fc060cfe93b.tar.gz lwn-e477094f0d3ce35b30d230bda3f31fc060cfe93b.zip |
Btrfs: hardcode GFP_NOFS for btrfs_bio_clone_partial
We only pass GFP_NOFS to btrfs_bio_clone_partial, so lets hardcode it.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index acb8c1d177e2..f2312b8aec4d 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2721,14 +2721,13 @@ struct bio *btrfs_io_bio_alloc(gfp_t gfp_mask, unsigned int nr_iovecs) return bio; } -struct bio *btrfs_bio_clone_partial(struct bio *orig, gfp_t gfp_mask, - int offset, int size) +struct bio *btrfs_bio_clone_partial(struct bio *orig, int offset, int size) { struct bio *bio; struct btrfs_io_bio *btrfs_bio; /* this will never fail when it's backed by a bioset */ - bio = bio_clone_fast(orig, gfp_mask, btrfs_bioset); + bio = bio_clone_fast(orig, GFP_NOFS, btrfs_bioset); ASSERT(bio); btrfs_bio = btrfs_io_bio(bio); |