Searched refs:maxsector (Results 1 – 1 of 1) sorted by relevance
2997 sector_t maxsector; in guard_bio_eod() local3003 maxsector = part_nr_sects_read(part); in guard_bio_eod()3005 maxsector = get_capacity(bio->bi_disk); in guard_bio_eod()3008 if (!maxsector) in guard_bio_eod()3016 if (unlikely(bio->bi_iter.bi_sector >= maxsector)) in guard_bio_eod()3019 maxsector -= bio->bi_iter.bi_sector; in guard_bio_eod()3020 if (likely((bio->bi_iter.bi_size >> 9) <= maxsector)) in guard_bio_eod()3023 bio_truncate(bio, maxsector << 9); in guard_bio_eod()