[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-devel] [PATCH V5 6/9] f2fs: use helper in init_blkz_info()
- To: linux-block@xxxxxxxxxxxxxxx
- From: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>
- Date: Tue, 20 Aug 2019 23:14:20 -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: Wed, 21 Aug 2019 06:15:10 +0000
- Ironport-sdr: mi7cpFVYmr5t4XAxpU5sUSy+w/1dWUbBk0BHGSff4aKQ78H0sO+5Gvb+Ijqz26Jo1rFxUcIM4c UCzQP+Fub3v3YlgXH7UC/aQRlRVk43GQzW6q8kcPJaauoBuAoi2pGL/uBQ2uoAVQA82Bq0GTLp wULr0cpaG1XeyAWdWejSEd/w0+AuJzkO1tLI6C/QqwIWzAQC3wGEvolQpTMPmGFGMAQmpwR+J8 +AhD3+yNFsnNEwb/QJKIZe1f914rYGBI3nnaCjiwzYwr9SdTjYXwkiPG3/CaMHX5/4dyy4pqmS N00=
- Ironport-sdr: 39Ey0NAQwuaSLAJEzA5u8xPkoSqztuovmx79SvlP3v+o/sHO/Cm8bRL4OT/YypijwMvzD/o0Mk MUOt6+uCVVh4EUgJZenUfrpJPeljUyfLdcrkOjyO5LcG+SV4PtfpNcajWxbFM5PNpe20hoPOG9 6HjN+EyANTz5bTUDd6O2v97toPpX84Cn4sOzNoEh2KY9ptiWVWDeA2nI72jw+KJ8/DBeVhSlhd 1f+j5NKvVjlD3aFYEg7DWY/+ccVgOx1ddVfAJ6p0QDbvtkRxL4hCBMmQdJV+s0NLI1fUKxwEQ0 TKHFASIiFfLo5qIte8BiUcg0
- Ironport-sdr: 5OITIcW+05bA5Z40gygWOJU1w9CIPQ11BCkLaBNmFn3P/VNeT0sYheeUS/i1HqpgVD2aksn/0T 0jmTG7ojAxndIs1tRyw00R3Gt8qcdicEt+6yTPu8vzUU0i4fpKYySbuvVoWZd8g+Abko1qujuu j4MC7leRfkA7azGPBOWylw7p7ZKglYFk9SHsW8rLlacSj/f7OCusSE3BCYeePrmX6TOsUVfbkX bPUoBBhF6ojUMTV6YAgSaZKf0Yh8+8iUQCm0hYI5wPdi5onYmHP4f2i3PqgeIT3YLVaSFNafh4 3zA=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Wdcironportexception: Internal
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 78a1b873e48a..78f8f834aa44 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -2775,7 +2775,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
|