[RFC PATCH 26/34] xfs: use bio_new in xfs_rw_bdev
[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 26/34] xfs: use bio_new in xfs_rw_bdev
- From: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>
- Date: Wed, 27 Jan 2021 23:11:25 -0800
- In-reply-to: <20210128071133.60335-1-chaitanya.kulkarni@wdc.com>
- Ironport-sdr: mFtXVhLYDzsj0s4DnvH7kzwjb09ccFARGIH93uyNaJXXfrD2r66+GyGlO6woLLfcDvdmahjMy1 dPXNVP/3ChVa0clnZ8xrC+sYVRWT4vaG+E5xoybgL2gKUMtItyVzCQU+pLzBf4yP3CiC8R8e/c wiUGYaX53zPSXCRkA51C93TW6t02EAmLaFoXLqOTa1AQ/uonTiothsUXN63+JxfIT8qxGdNaRB rDN2R/ei+fbZayUiLxigHcLA1nf6ZUbfpl/oOsFzWkMQREicUZD0xZoLYDntmnOYSyex25DGwS pdg=
- Ironport-sdr: XRMR2wwM8sSEjQX8p8sT+99d5tP+AyQDrEk+cNbZPgHsXjni6m7rK0wIiUmu1I7AtJklKcNtrv oFeUHxNkkK8s0KIUiSzFyiLwUj+6xRN75vizaJOm4kDfRCQOzH3q0ZPfbqien4qei2cGT48Qgr GRVEOZ0U67NDUxomM9294n/8xaIChwPTRhPp04HWQN3RQSw7I0pVe9KHITBLndS2wg0lwx2ObI NqxFGaji1VchosnyLU3kcteyYZ19MlJgztz2y/hmUz4ZX4JQUaJ6GM596CFuCPROqRSDSMmYPI i+lU0P3fcDstWn2fIMhsJL3u
- Ironport-sdr: VKPK85FFDQ0ubYH9k6Rw6wieHrPcfl4K1hBg1VEjOVVMtv+Wn9OrY3VfBreYbEOSh7D7aOPUjq dJWJ6VlQs6sIYpC3Ssc6YP0uwWxx1b9TT9J1h3Z9GJWPAkbpd7nwyEHzf2X7DKDqvOlXI3kZN0 S1wmdVHTrX+2YjnNZtTeKY+gTEIX2ZCvjrzBqJLi0bsvbsghiV571IsEQgaSLG4TZiYK5W8fXC DCDkO56zOq766cZD9jubbH+fYuelJGqJtYeO7naSGnNxMZmGQNaOGjq3DEnkrTfIYty+jvU6Mh VMc=
- References: <20210128071133.60335-1-chaitanya.kulkarni@wdc.com>
- Wdcironportexception: Internal
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>
---
fs/xfs/xfs_bio_io.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/fs/xfs/xfs_bio_io.c b/fs/xfs/xfs_bio_io.c
index e2148f2d5d6b..e4644f22ebe6 100644
--- a/fs/xfs/xfs_bio_io.c
+++ b/fs/xfs/xfs_bio_io.c
@@ -26,11 +26,8 @@ xfs_rw_bdev(
if (is_vmalloc && op == REQ_OP_WRITE)
flush_kernel_vmap_range(data, count);
- bio = bio_alloc(GFP_KERNEL, bio_max_vecs(left));
- bio_set_dev(bio, bdev);
- bio->bi_iter.bi_sector = sector;
- bio->bi_opf = op | REQ_META | REQ_SYNC;
-
+ bio = bio_new(bdev, sector, op, REQ_META | REQ_SYNC, bio_max_vecs(left),
+ GFP_KERNEL);
do {
struct page *page = kmem_to_page(data);
unsigned int off = offset_in_page(data);
--
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]