-
- Downloads
block: pass a block_device and opf to bio_alloc
Pass the block_device and operation that we plan to use this bio for to bio_alloc to optimize the assignment. NULL/0 can be passed, both for the passthrough case on a raw request_queue and to temporarily avoid refactoring some nasty code. Also move the gfp_mask argument after the nr_vecs argument for a much more logical calling convention matching what most of the kernel does. Signed-off-by:Christoph Hellwig <hch@lst.de> Reviewed-by:
Chaitanya Kulkarni <kch@nvidia.com> Link: https://lore.kernel.org/r/20220124091107.642561-18-hch@lst.de Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- block/bio.c 1 addition, 4 deletionsblock/bio.c
- block/fops.c 1 addition, 3 deletionsblock/fops.c
- drivers/block/drbd/drbd_receiver.c 4 additions, 6 deletionsdrivers/block/drbd/drbd_receiver.c
- drivers/block/rnbd/rnbd-srv.c 2 additions, 3 deletionsdrivers/block/rnbd/rnbd-srv.c
- drivers/block/xen-blkback/blkback.c 5 additions, 6 deletionsdrivers/block/xen-blkback/blkback.c
- drivers/block/zram/zram_drv.c 4 additions, 7 deletionsdrivers/block/zram/zram_drv.c
- drivers/md/dm-log-writes.c 8 additions, 13 deletionsdrivers/md/dm-log-writes.c
- drivers/md/dm-thin.c 4 additions, 5 deletionsdrivers/md/dm-thin.c
- drivers/md/dm-zoned-metadata.c 6 additions, 9 deletionsdrivers/md/dm-zoned-metadata.c
- drivers/nvdimm/nd_virtio.c 3 additions, 3 deletionsdrivers/nvdimm/nd_virtio.c
- drivers/nvme/target/io-cmd-bdev.c 6 additions, 6 deletionsdrivers/nvme/target/io-cmd-bdev.c
- drivers/nvme/target/passthru.c 3 additions, 2 deletionsdrivers/nvme/target/passthru.c
- drivers/nvme/target/zns.c 3 additions, 3 deletionsdrivers/nvme/target/zns.c
- drivers/scsi/ufs/ufshpb.c 2 additions, 2 deletionsdrivers/scsi/ufs/ufshpb.c
- drivers/target/target_core_iblock.c 2 additions, 3 deletionsdrivers/target/target_core_iblock.c
- fs/btrfs/disk-io.c 3 additions, 3 deletionsfs/btrfs/disk-io.c
- fs/buffer.c 6 additions, 8 deletionsfs/buffer.c
- fs/crypto/bio.c 7 additions, 6 deletionsfs/crypto/bio.c
- fs/direct-io.c 1 addition, 4 deletionsfs/direct-io.c
- fs/erofs/zdata.c 2 additions, 3 deletionsfs/erofs/zdata.c
Loading
Please register or sign in to comment