Home
last modified time | relevance | path

Searched refs:dev_sector (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/md/
Ddm-linear.c167 sector_t dev_sector, sector = pgoff * PAGE_SECTORS; in linear_dax_direct_access() local
169 dev_sector = linear_map_sector(ti, sector); in linear_dax_direct_access()
170 ret = bdev_dax_pgoff(bdev, dev_sector, nr_pages * PAGE_SIZE, &pgoff); in linear_dax_direct_access()
182 sector_t dev_sector, sector = pgoff * PAGE_SECTORS; in linear_dax_copy_from_iter() local
184 dev_sector = linear_map_sector(ti, sector); in linear_dax_copy_from_iter()
185 if (bdev_dax_pgoff(bdev, dev_sector, ALIGN(bytes, PAGE_SIZE), &pgoff)) in linear_dax_copy_from_iter()
196 sector_t dev_sector, sector = pgoff * PAGE_SECTORS; in linear_dax_copy_to_iter() local
198 dev_sector = linear_map_sector(ti, sector); in linear_dax_copy_to_iter()
199 if (bdev_dax_pgoff(bdev, dev_sector, ALIGN(bytes, PAGE_SIZE), &pgoff)) in linear_dax_copy_to_iter()
211 sector_t dev_sector, sector = pgoff * PAGE_SECTORS; in linear_dax_zero_page_range() local
[all …]
Ddm-stripe.c307 sector_t dev_sector, sector = pgoff * PAGE_SECTORS; in stripe_dax_direct_access() local
314 stripe_map_sector(sc, sector, &stripe, &dev_sector); in stripe_dax_direct_access()
315 dev_sector += sc->stripe[stripe].physical_start; in stripe_dax_direct_access()
319 ret = bdev_dax_pgoff(bdev, dev_sector, nr_pages * PAGE_SIZE, &pgoff); in stripe_dax_direct_access()
328 sector_t dev_sector, sector = pgoff * PAGE_SECTORS; in stripe_dax_copy_from_iter() local
334 stripe_map_sector(sc, sector, &stripe, &dev_sector); in stripe_dax_copy_from_iter()
335 dev_sector += sc->stripe[stripe].physical_start; in stripe_dax_copy_from_iter()
339 if (bdev_dax_pgoff(bdev, dev_sector, ALIGN(bytes, PAGE_SIZE), &pgoff)) in stripe_dax_copy_from_iter()
347 sector_t dev_sector, sector = pgoff * PAGE_SECTORS; in stripe_dax_copy_to_iter() local
353 stripe_map_sector(sc, sector, &stripe, &dev_sector); in stripe_dax_copy_to_iter()
[all …]
Draid10.c745 sector_t dev_sector; in read_balance() local
763 dev_sector = r10_bio->devs[slot].addr; in read_balance()
764 if (is_badblock(rdev, dev_sector, sectors, in read_balance()
769 if (first_bad <= dev_sector) { in read_balance()
774 bad_sectors -= (dev_sector - first_bad); in read_balance()
781 first_bad - dev_sector; in read_balance()
1378 sector_t dev_sector = r10_bio->devs[i].addr; in raid10_write_request() local
1382 is_bad = is_badblock(rdev, dev_sector, max_sectors, in raid10_write_request()
1393 if (is_bad && first_bad <= dev_sector) { in raid10_write_request()
1395 bad_sectors -= (dev_sector - first_bad); in raid10_write_request()
[all …]