diff options
author | David Sterba <dsterba@suse.com> | 2017-06-02 17:38:30 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-19 18:26:02 +0200 |
commit | e4f56903863c793bc1d181f7f0b6244ea5753338 (patch) | |
tree | 2285ab71b116b5b987df487e191b9fa969ad7ee5 /fs/btrfs/disk-io.c | |
parent | 3aa8e074ab2ec507b7380dd5d460fea83d92b66b (diff) | |
download | linux-stable-e4f56903863c793bc1d181f7f0b6244ea5753338.tar.gz linux-stable-e4f56903863c793bc1d181f7f0b6244ea5753338.tar.bz2 linux-stable-e4f56903863c793bc1d181f7f0b6244ea5753338.zip |
btrfs: btrfs_io_bio_alloc never fails, skip error handling
Update direct callers of btrfs_io_bio_alloc that do error handling, that
we can now remove.
Reviewed-by: Anand Jain <anand.jain@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 | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index cb79bce3a972..9f2ffe2c6afb 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3533,9 +3533,6 @@ static int write_dev_flush(struct btrfs_device *device, int wait) */ device->flush_bio = NULL; bio = btrfs_io_bio_alloc(GFP_NOFS, 0); - if (!bio) - return -ENOMEM; - bio->bi_end_io = btrfs_end_empty_barrier; bio->bi_bdev = device->bdev; bio->bi_opf = REQ_OP_WRITE | REQ_SYNC | REQ_PREFLUSH; |