Home
last modified time | relevance | path

Searched refs:maxsector (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/block/
Dblk-core.c537 sector_t maxsector = bdev_nr_sectors(bio->bi_bdev); in bio_check_eod() local
541 (nr_sectors > maxsector || in bio_check_eod()
542 bio->bi_iter.bi_sector > maxsector - nr_sectors)) { in bio_check_eod()
546 bio->bi_iter.bi_sector, nr_sectors, maxsector); in bio_check_eod()
Dbio.c694 sector_t maxsector = bdev_nr_sectors(bio->bi_bdev); in guard_bio_eod() local
696 if (!maxsector) in guard_bio_eod()
704 if (unlikely(bio->bi_iter.bi_sector >= maxsector)) in guard_bio_eod()
707 maxsector -= bio->bi_iter.bi_sector; in guard_bio_eod()
708 if (likely((bio->bi_iter.bi_size >> 9) <= maxsector)) in guard_bio_eod()
711 bio_truncate(bio, maxsector << 9); in guard_bio_eod()