Lines Matching refs:size
134 size_t size; member
166 ret = dio->size; in blkdev_bio_end_io()
221 dio->size = 0; in __blkdev_direct_IO()
273 dio->size += bio->bi_iter.bi_size; in __blkdev_direct_IO()
330 ret = dio->size; in __blkdev_direct_IO()
507 loff_t size = i_size_read(bd_inode); in blkdev_write_iter() local
521 if (iocb->ki_pos >= size) in blkdev_write_iter()
527 size -= iocb->ki_pos; in blkdev_write_iter()
528 if (iov_iter_count(from) > size) { in blkdev_write_iter()
529 shorted = iov_iter_count(from) - size; in blkdev_write_iter()
530 iov_iter_truncate(from, size); in blkdev_write_iter()
546 loff_t size = i_size_read(bd_inode); in blkdev_read_iter() local
551 if (pos >= size) in blkdev_read_iter()
554 size -= pos; in blkdev_read_iter()
555 if (iov_iter_count(to) > size) { in blkdev_read_iter()
556 shorted = iov_iter_count(to) - size; in blkdev_read_iter()
557 iov_iter_truncate(to, size); in blkdev_read_iter()