Home
last modified time | relevance | path

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

/linux/block/
A Dblk-core.c576 static void handle_bad_sector(struct bio *bio, sector_t maxsector) in handle_bad_sector() argument
584 bio_end_sector(bio), maxsector); in handle_bad_sector()
655 sector_t maxsector = bdev_nr_sectors(bio->bi_bdev); in bio_check_eod() local
658 if (nr_sectors && maxsector && in bio_check_eod()
659 (nr_sectors > maxsector || in bio_check_eod()
660 bio->bi_iter.bi_sector > maxsector - nr_sectors)) { in bio_check_eod()
661 handle_bad_sector(bio, maxsector); in bio_check_eod()
A Dbio.c604 sector_t maxsector = bdev_nr_sectors(bio->bi_bdev); in guard_bio_eod() local
606 if (!maxsector) in guard_bio_eod()
614 if (unlikely(bio->bi_iter.bi_sector >= maxsector)) in guard_bio_eod()
617 maxsector -= bio->bi_iter.bi_sector; in guard_bio_eod()
618 if (likely((bio->bi_iter.bi_size >> 9) <= maxsector)) in guard_bio_eod()
621 bio_truncate(bio, maxsector << 9); in guard_bio_eod()

Completed in 9 milliseconds