Lines Matching refs:offset

74 page_cache_seek_hole_data(struct inode *inode, loff_t offset, loff_t length,  in page_cache_seek_hole_data()  argument
77 pgoff_t index = offset >> PAGE_SHIFT; in page_cache_seek_hole_data()
78 pgoff_t end = DIV_ROUND_UP(offset + length, PAGE_SIZE); in page_cache_seek_hole_data()
79 loff_t lastoff = offset; in page_cache_seek_hole_data()
110 if (lastoff < offset + length) in page_cache_seek_hole_data()
121 iomap_seek_hole_actor(struct inode *inode, loff_t offset, loff_t length, in iomap_seek_hole_actor() argument
126 offset = page_cache_seek_hole_data(inode, offset, length, in iomap_seek_hole_actor()
128 if (offset < 0) in iomap_seek_hole_actor()
132 *(loff_t *)data = offset; in iomap_seek_hole_actor()
140 iomap_seek_hole(struct inode *inode, loff_t offset, const struct iomap_ops *ops) in iomap_seek_hole() argument
143 loff_t length = size - offset; in iomap_seek_hole()
147 if (offset < 0 || offset >= size) in iomap_seek_hole()
151 ret = iomap_apply(inode, offset, length, IOMAP_REPORT, ops, in iomap_seek_hole()
152 &offset, iomap_seek_hole_actor); in iomap_seek_hole()
158 offset += ret; in iomap_seek_hole()
162 return offset; in iomap_seek_hole()
167 iomap_seek_data_actor(struct inode *inode, loff_t offset, loff_t length, in iomap_seek_data_actor() argument
174 offset = page_cache_seek_hole_data(inode, offset, length, in iomap_seek_data_actor()
176 if (offset < 0) in iomap_seek_data_actor()
180 *(loff_t *)data = offset; in iomap_seek_data_actor()
186 iomap_seek_data(struct inode *inode, loff_t offset, const struct iomap_ops *ops) in iomap_seek_data() argument
189 loff_t length = size - offset; in iomap_seek_data()
193 if (offset < 0 || offset >= size) in iomap_seek_data()
197 ret = iomap_apply(inode, offset, length, IOMAP_REPORT, ops, in iomap_seek_data()
198 &offset, iomap_seek_data_actor); in iomap_seek_data()
204 offset += ret; in iomap_seek_data()
210 return offset; in iomap_seek_data()