mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
e4f5690386
commit
8b6c1d56f2
4 changed files with 5 additions and 5 deletions
|
@ -2675,13 +2675,13 @@ btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs,
|
||||||
return bio;
|
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 btrfs_io_bio *btrfs_bio;
|
||||||
struct bio *new;
|
struct bio *new;
|
||||||
|
|
||||||
/* Bio allocation backed by a bioset does not fail */
|
/* 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 = btrfs_io_bio(new);
|
||||||
btrfs_bio->csum = NULL;
|
btrfs_bio->csum = NULL;
|
||||||
btrfs_bio->csum_allocated = NULL;
|
btrfs_bio->csum_allocated = NULL;
|
||||||
|
|
|
@ -466,7 +466,7 @@ struct bio *
|
||||||
btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs,
|
btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs,
|
||||||
gfp_t gfp_flags);
|
gfp_t gfp_flags);
|
||||||
struct bio *btrfs_io_bio_alloc(gfp_t gfp_mask, unsigned int nr_iovecs);
|
struct bio *btrfs_io_bio_alloc(gfp_t gfp_mask, unsigned int nr_iovecs);
|
||||||
struct bio *btrfs_bio_clone(struct bio *bio, gfp_t gfp_mask);
|
struct bio *btrfs_bio_clone(struct bio *bio);
|
||||||
struct bio *btrfs_bio_clone_partial(struct bio *orig, int offset, int size);
|
struct bio *btrfs_bio_clone_partial(struct bio *orig, int offset, int size);
|
||||||
|
|
||||||
struct btrfs_fs_info;
|
struct btrfs_fs_info;
|
||||||
|
|
|
@ -8583,7 +8583,7 @@ static void btrfs_submit_direct(struct bio *dio_bio, struct inode *inode,
|
||||||
|
|
||||||
skip_sum = BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM;
|
skip_sum = BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM;
|
||||||
|
|
||||||
bio = btrfs_bio_clone(dio_bio, GFP_NOFS);
|
bio = btrfs_bio_clone(dio_bio);
|
||||||
|
|
||||||
dip = kzalloc(sizeof(*dip), GFP_NOFS);
|
dip = kzalloc(sizeof(*dip), GFP_NOFS);
|
||||||
if (!dip) {
|
if (!dip) {
|
||||||
|
|
|
@ -6256,7 +6256,7 @@ int btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dev_nr < total_devs - 1)
|
if (dev_nr < total_devs - 1)
|
||||||
bio = btrfs_bio_clone(first_bio, GFP_NOFS);
|
bio = btrfs_bio_clone(first_bio);
|
||||||
else
|
else
|
||||||
bio = first_bio;
|
bio = first_bio;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue