Searched refs:maxsector (Results 1 – 2 of 2) sorted by relevance
741 static void handle_bad_sector(struct bio *bio, sector_t maxsector) in handle_bad_sector() argument749 (long long)maxsector); in handle_bad_sector()821 static inline int bio_check_eod(struct bio *bio, sector_t maxsector) in bio_check_eod() argument825 if (nr_sectors && maxsector && in bio_check_eod()826 (nr_sectors > maxsector || in bio_check_eod()827 bio->bi_iter.bi_sector > maxsector - nr_sectors)) { in bio_check_eod()828 handle_bad_sector(bio, maxsector); in bio_check_eod()
2996 sector_t maxsector; in guard_bio_eod() local3004 maxsector = part_nr_sects_read(part); in guard_bio_eod()3006 maxsector = get_capacity(bio->bi_disk); in guard_bio_eod()3009 if (!maxsector) in guard_bio_eod()3017 if (unlikely(bio->bi_iter.bi_sector >= maxsector)) in guard_bio_eod()3020 maxsector -= bio->bi_iter.bi_sector; in guard_bio_eod()3021 if (likely((bio->bi_iter.bi_size >> 9) <= maxsector)) in guard_bio_eod()3025 truncated_bytes = bio->bi_iter.bi_size - (maxsector << 9); in guard_bio_eod()