diff options
author | David Sterba <dsterba@suse.com> | 2017-06-12 17:29:41 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-19 18:26:04 +0200 |
commit | c5e4c3d7503453832444475641988ffa02b88b6d (patch) | |
tree | 31eecedf58d2ef195db606fefec63fbc5eaf1dfe /fs/btrfs/disk-io.c | |
parent | 184f999e12152d1b1f284792ba4e82ef453ce7b7 (diff) | |
download | linux-stable-c5e4c3d7503453832444475641988ffa02b88b6d.tar.gz linux-stable-c5e4c3d7503453832444475641988ffa02b88b6d.tar.bz2 linux-stable-c5e4c3d7503453832444475641988ffa02b88b6d.zip |
btrfs: sink gfp parameter to btrfs_io_bio_alloc
We can hardcode GFP_NOFS to btrfs_io_bio_alloc, although it means we
change it back from GFP_KERNEL in scrub. I'd rather save a few stack
bytes from not passing the gfp flags in the remaining, more imporatant,
contexts and the bio allocating API now looks more consistent.
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 9f2ffe2c6afb..8b57c280e5cd 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3532,7 +3532,7 @@ static int write_dev_flush(struct btrfs_device *device, int wait) * caller */ device->flush_bio = NULL; - bio = btrfs_io_bio_alloc(GFP_NOFS, 0); + bio = btrfs_io_bio_alloc(0); bio->bi_end_io = btrfs_end_empty_barrier; bio->bi_bdev = device->bdev; bio->bi_opf = REQ_OP_WRITE | REQ_SYNC | REQ_PREFLUSH; |