[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-devel] [PATCH V4 6/9] f2fs: use helper in init_blkz_info()
- To: linux-block@xxxxxxxxxxxxxxx
- From: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>
- Date: Mon, 8 Jul 2019 11:47:08 -0700
- Cc: damien.lemoal@xxxxxxx, linux-btrace@xxxxxxxxxxxxxxx, bvanassche@xxxxxxx, linux-scsi@xxxxxxxxxxxxxxx, konrad.wilk@xxxxxxxxxx, Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>, yuchao0@xxxxxxxxxx, colyli@xxxxxxx, linux-bcache@xxxxxxxxxxxxxxx, jaegeuk@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, kent.overstreet@xxxxxxxxx, roger.pau@xxxxxxxxxx
- Delivery-date: Mon, 08 Jul 2019 18:47:57 +0000
- Ironport-sdr: zza823IYodbth4Zo4zqOMd8Mr7lqhYcH7BPFSHcsKWTO2+J8kUI2eIqh74Wg/3DMXKzKNZB+kz FSWWd5IjUlxF55YXU6dUpWHUjuGkEDVFc0lBa3UcVuxy+BRzIe1XS87adP6YbfRgQp95KE81Dk mEHA+THbEPhLBn5fVS33ht6bGIgMNijAmtr1qEmii1JnHuYk9Zrw/1BK0T8sdG+h/BK+9mKgHH 9Oy46tKYomfYnnObRkfR1q7t6G5l1od9Il1P6NOVzmgJvXNlP3tbYfs4u/VI2nxiiTiRkIfL92 Rlc=
- Ironport-sdr: 22m1an4HIx4t8fV7U5cHtCGCoMIcdkKpr5VLEJCWA6OypPRBr2lSd8lthwNDjp9BK5Y0FGB5s2 hJ93Wt602TEzrZgCiYoEub1bmZ/oopK6xC7kSyyVTuagydh2m83cug59NM1o1t+zdBN9YncR54 4S/cw9EEv2mmoKkq5vKYIClnQVAk/kmhOid9t70hkwhC1WeVR50AjJnVcqIUdIvGCV6d8qeU1p K5yGtRCYQ6RYgkE4BTIVdyN8lsbhpve3mPmJAB1eo2/tefGHko3TsrRS3ckBfKX6eW++LiDg9N ypLmQtFDyy9yJpaSGgS/nICG
- Ironport-sdr: kecyraaTh4dfkJYr6JIVW0Suuw0udo/w+uOixco2i06qP7L/SWcmvqt/OPQcFYibEwQdrOi0nK enRpRX7ANej55ctxwPbFJYb7fqRPzb9iUsQ+X5ZNEUrTgNq9FFFFtCk8Uw0GOXwADBWlxronSY Svt1NhhCrvFTzjTb0NAJyLkYX8DO4fah1yOc1ieVyunDXipVwQlvdQUxQXLaXQ7YfMQ8I6zuux LMBm49s+scu5jetOVTy2vWOk4WWISLi0ojSm1PhlAA0xRc/M8yQejIviSzITpm3H1FBND+zGZZ tNo=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
This patch updates the init_blkz_info() with newly introduced helper
function to read the nr_sects from block device's hd_parts with the
help of part_nr_sects_read().
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>
---
fs/f2fs/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 6b959bbb336a..24e2848afcf5 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -2798,7 +2798,7 @@ static int init_percpu_info(struct f2fs_sb_info *sbi)
static int init_blkz_info(struct f2fs_sb_info *sbi, int devi)
{
struct block_device *bdev = FDEV(devi).bdev;
- sector_t nr_sectors = bdev->bd_part->nr_sects;
+ sector_t nr_sectors = bdev_nr_sects(bdev);
sector_t sector = 0;
struct blk_zone *zones;
unsigned int i, nr_zones;
--
2.17.0
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|