Searched refs:maxsector (Results 1 – 2 of 2) sorted by relevance
611 sector_t maxsector; in guard_bio_eod() local617 maxsector = part_nr_sects_read(part); in guard_bio_eod()619 maxsector = get_capacity(bio->bi_disk); in guard_bio_eod()622 if (!maxsector) in guard_bio_eod()630 if (unlikely(bio->bi_iter.bi_sector >= maxsector)) in guard_bio_eod()633 maxsector -= bio->bi_iter.bi_sector; in guard_bio_eod()634 if (likely((bio->bi_iter.bi_size >> 9) <= maxsector)) in guard_bio_eod()637 bio_truncate(bio, maxsector << 9); in guard_bio_eod()
655 static void handle_bad_sector(struct bio *bio, sector_t maxsector) in handle_bad_sector() argument662 bio_end_sector(bio), maxsector); in handle_bad_sector()733 static inline int bio_check_eod(struct bio *bio, sector_t maxsector) in bio_check_eod() argument737 if (nr_sectors && maxsector && in bio_check_eod()738 (nr_sectors > maxsector || in bio_check_eod()739 bio->bi_iter.bi_sector > maxsector - nr_sectors)) { in bio_check_eod()740 handle_bad_sector(bio, maxsector); in bio_check_eod()