Searched refs:maxsector (Results 1 – 2 of 2) sorted by relevance
610 sector_t maxsector; in guard_bio_eod() local616 maxsector = part_nr_sects_read(part); in guard_bio_eod()618 maxsector = get_capacity(bio->bi_disk); in guard_bio_eod()621 if (!maxsector) in guard_bio_eod()629 if (unlikely(bio->bi_iter.bi_sector >= maxsector)) in guard_bio_eod()632 maxsector -= bio->bi_iter.bi_sector; in guard_bio_eod()633 if (likely((bio->bi_iter.bi_size >> 9) <= maxsector)) in guard_bio_eod()636 bio_truncate(bio, maxsector << 9); in guard_bio_eod()
649 static void handle_bad_sector(struct bio *bio, sector_t maxsector) in handle_bad_sector() argument656 bio_end_sector(bio), maxsector); in handle_bad_sector()727 static inline int bio_check_eod(struct bio *bio, sector_t maxsector) in bio_check_eod() argument731 if (nr_sectors && maxsector && in bio_check_eod()732 (nr_sectors > maxsector || in bio_check_eod()733 bio->bi_iter.bi_sector > maxsector - nr_sectors)) { in bio_check_eod()734 handle_bad_sector(bio, maxsector); in bio_check_eod()