Home
last modified time | relevance | path

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

/Linux-v5.10/fs/overlayfs/
Dcopy_up.c135 struct file *old_file; in ovl_copy_up_data() local
148 old_file = ovl_path_open(old, O_LARGEFILE | O_RDONLY); in ovl_copy_up_data()
149 if (IS_ERR(old_file)) in ovl_copy_up_data()
150 return PTR_ERR(old_file); in ovl_copy_up_data()
159 cloned = do_clone_file_range(old_file, 0, new_file, 0, len, 0); in ovl_copy_up_data()
165 if (old_file->f_mode & FMODE_LSEEK && in ovl_copy_up_data()
166 old_file->f_op->llseek) in ovl_copy_up_data()
198 data_pos = vfs_llseek(old_file, old_pos, SEEK_DATA); in ovl_copy_up_data()
211 bytes = do_splice_direct(old_file, &old_pos, in ovl_copy_up_data()
227 fput(old_file); in ovl_copy_up_data()
/Linux-v5.10/fs/cifs/
Dlink.c508 cifs_hardlink(struct dentry *old_file, struct inode *inode, in cifs_hardlink() argument
528 from_name = build_path_from_dentry(old_file); in cifs_hardlink()
557 if (d_really_is_positive(old_file)) { in cifs_hardlink()
558 cifsInode = CIFS_I(d_inode(old_file)); in cifs_hardlink()
560 spin_lock(&d_inode(old_file)->i_lock); in cifs_hardlink()
561 inc_nlink(d_inode(old_file)); in cifs_hardlink()
562 spin_unlock(&d_inode(old_file)->i_lock); in cifs_hardlink()
/Linux-v5.10/drivers/block/
Dloop.c707 struct file *file = NULL, *old_file; in loop_change_fd() local
732 old_file = lo->lo_backing_file; in loop_change_fd()
737 if (get_loop_size(lo, file) != get_loop_size(lo, old_file)) in loop_change_fd()
742 mapping_set_gfp_mask(old_file->f_mapping, lo->old_gfp_mask); in loop_change_fd()
756 fput(old_file); in loop_change_fd()