Home
last modified time | relevance | path

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

/block/
Dbio.c613 sector_t maxsector; in guard_bio_eod() local
619 maxsector = part_nr_sects_read(part); in guard_bio_eod()
621 maxsector = get_capacity(bio->bi_disk); in guard_bio_eod()
624 if (!maxsector) in guard_bio_eod()
632 if (unlikely(bio->bi_iter.bi_sector >= maxsector)) in guard_bio_eod()
635 maxsector -= bio->bi_iter.bi_sector; in guard_bio_eod()
636 if (likely((bio->bi_iter.bi_size >> 9) <= maxsector)) in guard_bio_eod()
639 bio_truncate(bio, maxsector << 9); in guard_bio_eod()
Dblk-core.c661 static void handle_bad_sector(struct bio *bio, sector_t maxsector) in handle_bad_sector() argument
668 bio_end_sector(bio), maxsector); in handle_bad_sector()
737 static inline int bio_check_eod(struct bio *bio, sector_t maxsector) in bio_check_eod() argument
741 if (nr_sectors && maxsector && in bio_check_eod()
742 (nr_sectors > maxsector || in bio_check_eod()
743 bio->bi_iter.bi_sector > maxsector - nr_sectors)) { in bio_check_eod()
744 handle_bad_sector(bio, maxsector); in bio_check_eod()