Lines Matching refs:filechunk

119 	size_t      filechunk = 0;  in kern_ioctl_file_extents()  local
149 for (; offset < end; offset += filechunk) { in kern_ioctl_file_extents()
152 filechunk = 1 * 1024 * 1024 * 1024; in kern_ioctl_file_extents()
153 if (filechunk > (size_t)(end - offset)) { in kern_ioctl_file_extents()
154 filechunk = (size_t)(end - offset); in kern_ioctl_file_extents()
156 error = VNOP_BLOCKMAP(ref->vp, offset, filechunk, &blkno, in kern_ioctl_file_extents()
157 &filechunk, NULL, VNODE_WRITE | VNODE_BLOCKMAP_NO_TRACK, NULL); in kern_ioctl_file_extents()
167 filechunk = (unsigned long)((ref->filelength > ULONG_MAX) ? ULONG_MAX: ref->filelength); in kern_ioctl_file_extents()
172 extent.length = filechunk; in kern_ioctl_file_extents()
179 pin.cp_extent.length = filechunk; in kern_ioctl_file_extents()
187 pin.cp_extent.length = filechunk; in kern_ioctl_file_extents()
230 size_t filechunk = 0; in kern_open_file_for_direct_io() local
427 for (; f_offset < ref->filelength; f_offset += filechunk) { in kern_open_file_for_direct_io()
429 filechunk = 1 * 1024 * 1024 * 1024; in kern_open_file_for_direct_io()
432 error = VNOP_BLOCKMAP(ref->vp, f_offset, filechunk, &blkno, in kern_open_file_for_direct_io()
433 &filechunk, NULL, VNODE_WRITE | VNODE_BLOCKMAP_NO_TRACK, NULL); in kern_open_file_for_direct_io()
443 filechunk = f_offset ? 0 : (unsigned long)ref->filelength; in kern_open_file_for_direct_io()
447 while (physoffset < filechunk) { in kern_open_file_for_direct_io()
452 getphysreq.length = (filechunk - physoffset); in kern_open_file_for_direct_io()