Home
last modified time | relevance | path

Searched refs:src_fp (Results 1 – 2 of 2) sorted by relevance

/linux/fs/smb/server/
H A Dvfs.c1709 struct ksmbd_file *src_fp, in ksmbd_vfs_copy_file_ranges() argument
1726 if (!(src_fp->daccess & (FILE_READ_DATA_LE | FILE_EXECUTE_LE))) { in ksmbd_vfs_copy_file_ranges()
1727 pr_err("no right to read(%pD)\n", src_fp->filp); in ksmbd_vfs_copy_file_ranges()
1735 if (ksmbd_stream_fd(src_fp) || ksmbd_stream_fd(dst_fp)) in ksmbd_vfs_copy_file_ranges()
1746 if (check_lock_range(src_fp->filp, src_off, in ksmbd_vfs_copy_file_ranges()
1755 src_file_size = i_size_read(file_inode(src_fp->filp)); in ksmbd_vfs_copy_file_ranges()
1769 if (file_inode(src_fp->filp) == file_inode(dst_fp->filp) && in ksmbd_vfs_copy_file_ranges()
1772 ret = do_splice_direct(src_fp->filp, &src_off, in ksmbd_vfs_copy_file_ranges()
1776 ret = vfs_copy_file_range(src_fp->filp, src_off, in ksmbd_vfs_copy_file_ranges()
1779 ret = vfs_copy_file_range(src_fp->filp, src_off, in ksmbd_vfs_copy_file_ranges()
H A Dsmb2pdu.c7735 struct ksmbd_file *src_fp = NULL, *dst_fp = NULL; in fsctl_copychunk() local
7779 src_fp = ksmbd_lookup_foreign_fd(work, in fsctl_copychunk()
7783 if (!src_fp || in fsctl_copychunk()
7784 src_fp->persistent_id != le64_to_cpu(ci_req->SourceKeyU64[1])) { in fsctl_copychunk()
7804 ret = ksmbd_vfs_copy_file_ranges(work, src_fp, dst_fp, in fsctl_copychunk()
7832 ksmbd_fd_put(work, src_fp); in fsctl_copychunk()