Lines Matching refs:work
39 static void ksmbd_vfs_inherit_owner(struct ksmbd_work *work, in ksmbd_vfs_inherit_owner() argument
43 if (!test_share_config_flag(work->tcon->share_conf, in ksmbd_vfs_inherit_owner()
172 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_create() argument
178 dentry = ksmbd_vfs_kern_path_create(work, name, in ksmbd_vfs_create()
192 ksmbd_vfs_inherit_owner(work, d_inode(path.dentry), in ksmbd_vfs_create()
210 int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_mkdir() argument
217 dentry = ksmbd_vfs_kern_path_create(work, name, in ksmbd_vfs_mkdir()
246 ksmbd_vfs_inherit_owner(work, d_inode(path.dentry), d_inode(d)); in ksmbd_vfs_mkdir()
374 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count, in ksmbd_vfs_read() argument
387 if (work->conn->connection_type) { in ksmbd_vfs_read()
397 if (!work->tcon->posix_extensions) { in ksmbd_vfs_read()
490 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, in ksmbd_vfs_write() argument
498 if (work->conn->connection_type) { in ksmbd_vfs_write()
515 if (!work->tcon->posix_extensions) { in ksmbd_vfs_write()
528 smb_break_all_levII_oplock(work, fp, 1); in ksmbd_vfs_write()
574 int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id) in ksmbd_vfs_fsync() argument
579 fp = ksmbd_lookup_fd_slow(work, fid, p_id); in ksmbd_vfs_fsync()
587 ksmbd_fd_put(work, fp); in ksmbd_vfs_fsync()
598 int ksmbd_vfs_remove_file(struct ksmbd_work *work, const struct path *path) in ksmbd_vfs_remove_file() argument
604 if (ksmbd_override_fsids(work)) in ksmbd_vfs_remove_file()
624 ksmbd_revert_fsids(work); in ksmbd_vfs_remove_file()
636 int ksmbd_vfs_link(struct ksmbd_work *work, const char *oldname, in ksmbd_vfs_link() argument
643 if (ksmbd_override_fsids(work)) in ksmbd_vfs_link()
653 dentry = ksmbd_vfs_kern_path_create(work, newname, in ksmbd_vfs_link()
679 ksmbd_revert_fsids(work); in ksmbd_vfs_link()
683 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, in ksmbd_vfs_rename() argument
692 struct ksmbd_share_config *share_conf = work->tcon->share_conf; in ksmbd_vfs_rename()
697 if (ksmbd_override_fsids(work)) in ksmbd_vfs_rename()
735 ksmbd_fd_put(work, parent_fp); in ksmbd_vfs_rename()
738 ksmbd_fd_put(work, parent_fp); in ksmbd_vfs_rename()
801 ksmbd_revert_fsids(work); in ksmbd_vfs_rename()
813 int ksmbd_vfs_truncate(struct ksmbd_work *work, in ksmbd_vfs_truncate() argument
822 smb_break_all_levII_oplock(work, fp, 1); in ksmbd_vfs_truncate()
824 if (!work->tcon->posix_extensions) { in ksmbd_vfs_truncate()
984 int ksmbd_vfs_zero_data(struct ksmbd_work *work, struct ksmbd_file *fp, in ksmbd_vfs_zero_data() argument
987 smb_break_all_levII_oplock(work, fp, 1); in ksmbd_vfs_zero_data()
1217 int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *name, in ksmbd_vfs_kern_path_locked() argument
1221 struct ksmbd_share_config *share_conf = work->tcon->share_conf; in ksmbd_vfs_kern_path_locked()
1251 work->conn->um); in ksmbd_vfs_kern_path_locked()
1304 struct dentry *ksmbd_vfs_kern_path_create(struct ksmbd_work *work, in ksmbd_vfs_kern_path_create() argument
1312 abs_name = convert_to_unix_name(work->tcon->share_conf, name); in ksmbd_vfs_kern_path_create()
1682 int ksmbd_vfs_fill_dentry_attrs(struct ksmbd_work *work, in ksmbd_vfs_fill_dentry_attrs() argument
1687 struct ksmbd_share_config *share_conf = work->tcon->share_conf; in ksmbd_vfs_fill_dentry_attrs()
1713 if (test_share_config_flag(work->tcon->share_conf, in ksmbd_vfs_fill_dentry_attrs()
1776 int ksmbd_vfs_copy_file_ranges(struct ksmbd_work *work, in ksmbd_vfs_copy_file_ranges() argument
1806 smb_break_all_levII_oplock(work, dst_fp, 1); in ksmbd_vfs_copy_file_ranges()
1808 if (!work->tcon->posix_extensions) { in ksmbd_vfs_copy_file_ranges()