Home
last modified time | relevance | path

Searched refs:punch_hole (Results 1 – 4 of 4) sorted by relevance

/linux/fs/
H A Dfile.c364 static unsigned int sane_fdtable_size(struct fdtable *fdt, struct fd_range *punch_hole) in sane_fdtable_size() argument
370 if (punch_hole && punch_hole->to >= last && punch_hole->from <= last) { in sane_fdtable_size()
371 last = find_last_bit(fdt->open_fds, punch_hole->from); in sane_fdtable_size()
372 if (last == punch_hole->from) in sane_fdtable_size()
383 struct files_struct *dup_fd(struct files_struct *oldf, struct fd_range *punch_hole) in dup_fd() argument
409 open_files = sane_fdtable_size(old_fdt, punch_hole); in dup_fd()
433 open_files = sane_fdtable_size(old_fdt, punch_hole); in dup_fd()
803 struct fd_range range = {fd, max_fd}, *punch_hole = &range; in SYSCALL_DEFINE3() local
811 punch_hole = NULL; in SYSCALL_DEFINE3()
813 fds = dup_fd(cur_fds, punch_hole); in SYSCALL_DEFINE3()
/linux/fs/gfs2/
H A Dbmap.c43 static int punch_hole(struct gfs2_inode *ip, u64 offset, u64 length);
1074 punch_hole(ip, iomap->offset, iomap->length); in gfs2_iomap_begin_write()
1178 punch_hole(ip, hstart, hend - hstart); in gfs2_iomap_end()
1720 static int punch_hole(struct gfs2_inode *ip, u64 offset, u64 length) in punch_hole() function
2041 error = punch_hole(ip, newsize, 0); in do_shrink()
2167 error = punch_hole(ip, i_size_read(&ip->i_inode), 0); in gfs2_truncatei_resume()
2175 return punch_hole(ip, 0, 0); in gfs2_file_dealloc()
2467 error = punch_hole(ip, offset, length); in __gfs2_punch_hole()
/linux/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c1258 bool punch_hole) in vm_guest_mem_fallocate() argument
1260 const int mode = FALLOC_FL_KEEP_SIZE | (punch_hole ? FALLOC_FL_PUNCH_HOLE : 0); in vm_guest_mem_fallocate()
1280 punch_hole ? "punch hole" : "allocate", gpa, len, in vm_guest_mem_fallocate()
/linux/tools/testing/selftests/kvm/include/
H A Dkvm_util.h458 bool punch_hole);