[RFC PATCH 18/34] iomap: use bio_new in iomap_dio_bio_actor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: linux-xfs@xxxxxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, dm-devel@xxxxxxxxxx, linux-block@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, drbd-dev@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, linux-nvme@xxxxxxxxxxxxxxxxxxx, linux-scsi@xxxxxxxxxxxxxxx, target-devel@xxxxxxxxxxxxxxx, linux-fscrypt@xxxxxxxxxxxxxxx, jfs-discussion@xxxxxxxxxxxxxxxxxxxxx, linux-nilfs@xxxxxxxxxxxxxxx, ocfs2-devel@xxxxxxxxxxxxxx, linux-pm@xxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx
- Subject: [RFC PATCH 18/34] iomap: use bio_new in iomap_dio_bio_actor
- From: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>
- Date: Wed, 27 Jan 2021 23:11:17 -0800
- In-reply-to: <20210128071133.60335-1-chaitanya.kulkarni@wdc.com>
- Ironport-sdr: XbkADgbJBn6bLZsIf9CN/f4wj7ABwJBTgZEuRARxHRXes0w/Nmxuatot6v8AFABWCJWH02hyF2 mvD9UG6UpLcRvT2NhMq1Q5QjoL2Ciqf4jWZk4gAADbE4M9gOMpA659gkhKHak8+aWenHSZU97J twctV72IIoAT+Sgr6xaSQL0yxxsSVPOh1bgb5WnrFSBmj/3EuYi1/gSpoOmgX+q9zhrtpr2Hl/ hbH8CiAJSs3vSyI8zDjxFGgyfrU6p06B7hZao0vkldk66do9VrEVI6oO00t6rDGW4/BIwpF5jT LlU=
- Ironport-sdr: m6rXUMLgWfLvaxhHzbJ73eWwS0SxAT21y86BgOnXk16BZTIeffi7b1XaeYw/30gld0maFGQjwI SX1i3Y/oHRIjwH9yELf3wgRrOPPkpg3CuNGSSm3w1kQIwGwtoJaus6/jnsdkDx/BkfaZS4pKa4 gR2SyLECNq1dEXSZayYnKYLBxoy+mrX3FN1O8I/quOSgQIrhsDmsUBHSW7kQmnXiJ0noSjZ1w+ fUlWsXQeLeWn0RZrlUCOCxEkw1QA+wJd2lRMBE1WZpeaDe/rl/wH8Qdcb5Mv+rPCwY1sjCcT26 P4VRgKbUuqsUkQvYVtbBZM82
- Ironport-sdr: SE/7jhzj8mUN4IuNpOkC3snrZ8NJ1clnXy6y5ds9FsX94ZBtriQ4uRa7QWKdGcnXbjLMCBoUCV muTlW54Qa3qPh6fwMtXMlfwP2+yfKLqOcAu45V7pI+dpenWI0L1OM9udcXtJMTQueAmHig5gDN d6OcRwyGrT7GxH48PliS/P58sqmLq3e242QCy6iyXTMgFXRd2EClUAs64FPFphS/GBkZYgQLMx xAByTj3G42kPYoeBIsWoRZMAgUwhHcuqehcOxGoJkKVhb66+D9X5hujEyFAgPHDC4Sd1jNsKev N7A=
- References: <20210128071133.60335-1-chaitanya.kulkarni@wdc.com>
- Wdcironportexception: Internal
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>
---
fs/iomap/direct-io.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/fs/iomap/direct-io.c b/fs/iomap/direct-io.c
index f6c557a1bd25..0737192f7e5c 100644
--- a/fs/iomap/direct-io.c
+++ b/fs/iomap/direct-io.c
@@ -267,9 +267,8 @@ iomap_dio_bio_actor(struct inode *inode, loff_t pos, loff_t length,
goto out;
}
- bio = bio_alloc(GFP_KERNEL, nr_pages);
- bio_set_dev(bio, iomap->bdev);
- bio->bi_iter.bi_sector = iomap_sector(iomap, pos);
+ bio = bio_new(iomap->bdev, iomap_sector(iomap, pos), 0, 0,
+ nr_pages, GFP_KERNEL);
bio->bi_write_hint = dio->iocb->ki_hint;
bio->bi_ioprio = dio->iocb->ki_ioprio;
bio->bi_private = dio;
--
2.22.1
[Index of Archives]
[linux Cryptography]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]