Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/overlayfs/
Dcopy_up.c136 struct file *old_file; in ovl_copy_up_data() local
149 old_file = ovl_path_open(old, O_LARGEFILE | O_RDONLY); in ovl_copy_up_data()
150 if (IS_ERR(old_file)) in ovl_copy_up_data()
151 return PTR_ERR(old_file); in ovl_copy_up_data()
160 cloned = do_clone_file_range(old_file, 0, new_file, 0, len, 0); in ovl_copy_up_data()
166 if (old_file->f_mode & FMODE_LSEEK && in ovl_copy_up_data()
167 old_file->f_op->llseek) in ovl_copy_up_data()
199 data_pos = vfs_llseek(old_file, old_pos, SEEK_DATA); in ovl_copy_up_data()
212 bytes = do_splice_direct(old_file, &old_pos, in ovl_copy_up_data()
228 fput(old_file); in ovl_copy_up_data()
/kernel/linux/linux-5.10/fs/cifs/
Dlink.c512 cifs_hardlink(struct dentry *old_file, struct inode *inode, in cifs_hardlink() argument
532 from_name = build_path_from_dentry(old_file); in cifs_hardlink()
561 if (d_really_is_positive(old_file)) { in cifs_hardlink()
562 cifsInode = CIFS_I(d_inode(old_file)); in cifs_hardlink()
564 spin_lock(&d_inode(old_file)->i_lock); in cifs_hardlink()
565 inc_nlink(d_inode(old_file)); in cifs_hardlink()
566 spin_unlock(&d_inode(old_file)->i_lock); in cifs_hardlink()
/kernel/linux/linux-5.10/drivers/block/
Dloop.c694 struct file *file = NULL, *old_file; in loop_change_fd() local
719 old_file = lo->lo_backing_file; in loop_change_fd()
724 if (get_loop_size(lo, file) != get_loop_size(lo, old_file)) in loop_change_fd()
729 mapping_set_gfp_mask(old_file->f_mapping, lo->old_gfp_mask); in loop_change_fd()
743 fput(old_file); in loop_change_fd()
/kernel/linux/linux-5.10/io_uring/
Dio_uring.c8449 struct file *old_file; in io_install_fixed_file() local
8455 old_file = (struct file *)(file_slot->file_ptr & FFS_MASK); in io_install_fixed_file()
8457 ctx->rsrc_node, old_file); in io_install_fixed_file()