Lines Matching refs:parent_path
70 struct path *parent_path, in ksmbd_vfs_path_lookup_locked() argument
91 parent_path, &last, &type, in ksmbd_vfs_path_lookup_locked()
99 path_put(parent_path); in ksmbd_vfs_path_lookup_locked()
104 err = mnt_want_write(parent_path->mnt); in ksmbd_vfs_path_lookup_locked()
106 path_put(parent_path); in ksmbd_vfs_path_lookup_locked()
111 inode_lock_nested(parent_path->dentry->d_inode, I_MUTEX_PARENT); in ksmbd_vfs_path_lookup_locked()
112 d = lookup_one_qstr_excl(&last, parent_path->dentry, 0); in ksmbd_vfs_path_lookup_locked()
122 path->mnt = mntget(parent_path->mnt); in ksmbd_vfs_path_lookup_locked()
136 inode_unlock(d_inode(parent_path->dentry)); in ksmbd_vfs_path_lookup_locked()
137 mnt_drop_write(parent_path->mnt); in ksmbd_vfs_path_lookup_locked()
138 path_put(parent_path); in ksmbd_vfs_path_lookup_locked()
1223 unsigned int flags, struct path *parent_path, in ksmbd_vfs_kern_path_locked() argument
1229 err = ksmbd_vfs_path_lookup_locked(share_conf, name, flags, parent_path, in ksmbd_vfs_kern_path_locked()
1242 *parent_path = share_conf->vfs_path; in ksmbd_vfs_kern_path_locked()
1243 path_get(parent_path); in ksmbd_vfs_kern_path_locked()
1245 while (d_can_lookup(parent_path->dentry)) { in ksmbd_vfs_kern_path_locked()
1254 err = ksmbd_vfs_lookup_in_dir(parent_path, filename, in ksmbd_vfs_kern_path_locked()
1271 path_put(parent_path); in ksmbd_vfs_kern_path_locked()
1272 *parent_path = *path; in ksmbd_vfs_kern_path_locked()
1280 path_put(parent_path); in ksmbd_vfs_kern_path_locked()
1285 err = mnt_want_write(parent_path->mnt); in ksmbd_vfs_kern_path_locked()
1288 path_put(parent_path); in ksmbd_vfs_kern_path_locked()
1292 err = ksmbd_vfs_lock_parent(parent_path->dentry, path->dentry); in ksmbd_vfs_kern_path_locked()
1295 path_put(parent_path); in ksmbd_vfs_kern_path_locked()
1301 void ksmbd_vfs_kern_path_unlock(struct path *parent_path, struct path *path) in ksmbd_vfs_kern_path_unlock() argument
1303 inode_unlock(d_inode(parent_path->dentry)); in ksmbd_vfs_kern_path_unlock()
1304 mnt_drop_write(parent_path->mnt); in ksmbd_vfs_kern_path_unlock()
1306 path_put(parent_path); in ksmbd_vfs_kern_path_unlock()