maxsector         741 block/blk-core.c static void handle_bad_sector(struct bio *bio, sector_t maxsector)
maxsector         749 block/blk-core.c 			(long long)maxsector);
maxsector         821 block/blk-core.c static inline int bio_check_eod(struct bio *bio, sector_t maxsector)
maxsector         825 block/blk-core.c 	if (nr_sectors && maxsector &&
maxsector         826 block/blk-core.c 	    (nr_sectors > maxsector ||
maxsector         827 block/blk-core.c 	     bio->bi_iter.bi_sector > maxsector - nr_sectors)) {
maxsector         828 block/blk-core.c 		handle_bad_sector(bio, maxsector);
maxsector        3007 fs/buffer.c    	sector_t maxsector;
maxsector        3013 fs/buffer.c    		maxsector = part_nr_sects_read(part);
maxsector        3015 fs/buffer.c    		maxsector = get_capacity(bio->bi_disk);
maxsector        3018 fs/buffer.c    	if (!maxsector)
maxsector        3026 fs/buffer.c    	if (unlikely(bio->bi_iter.bi_sector >= maxsector))
maxsector        3029 fs/buffer.c    	maxsector -= bio->bi_iter.bi_sector;
maxsector        3030 fs/buffer.c    	if (likely((bio->bi_iter.bi_size >> 9) <= maxsector))
maxsector        3033 fs/buffer.c    	bio_truncate(bio, maxsector << 9);