Lines Matching refs:dir_fp

4029 	struct ksmbd_file	*dir_fp;  member
4035 static void lock_dir(struct ksmbd_file *dir_fp) in lock_dir() argument
4037 struct dentry *dir = dir_fp->filp->f_path.dentry; in lock_dir()
4042 static void unlock_dir(struct ksmbd_file *dir_fp) in unlock_dir() argument
4044 struct dentry *dir = dir_fp->filp->f_path.dentry; in unlock_dir()
4051 struct mnt_idmap *idmap = file_mnt_idmap(priv->dir_fp->filp); in process_query_dir_entries()
4063 lock_dir(priv->dir_fp); in process_query_dir_entries()
4065 priv->dir_fp->filp->f_path.dentry, in process_query_dir_entries()
4067 unlock_dir(priv->dir_fp); in process_query_dir_entries()
4291 struct ksmbd_file *dir_fp = NULL; in smb2_query_dir() local
4313 dir_fp = ksmbd_lookup_fd_slow(work, req->VolatileFileId, req->PersistentFileId); in smb2_query_dir()
4314 if (!dir_fp) { in smb2_query_dir()
4319 if (!(dir_fp->daccess & FILE_LIST_DIRECTORY_LE) || in smb2_query_dir()
4320 inode_permission(file_mnt_idmap(dir_fp->filp), in smb2_query_dir()
4321 file_inode(dir_fp->filp), in smb2_query_dir()
4323 pr_err("no right to enumerate directory (%pD)\n", dir_fp->filp); in smb2_query_dir()
4328 if (!S_ISDIR(file_inode(dir_fp->filp)->i_mode)) { in smb2_query_dir()
4348 generic_file_llseek(dir_fp->filp, 0, SEEK_SET); in smb2_query_dir()
4368 dir_fp, &d_info, srch_ptr, in smb2_query_dir()
4382 query_dir_private.dir_fp = dir_fp; in smb2_query_dir()
4385 dir_fp->readdir_data.private = &query_dir_private; in smb2_query_dir()
4386 set_ctx_actor(&dir_fp->readdir_data.ctx, __query_dir); in smb2_query_dir()
4388 rc = iterate_dir(dir_fp->filp, &dir_fp->readdir_data.ctx); in smb2_query_dir()
4410 dir_fp->dot_dotdot[0] = dir_fp->dot_dotdot[1] = 0; in smb2_query_dir()
4441 ksmbd_fd_put(work, dir_fp); in smb2_query_dir()
4468 ksmbd_fd_put(work, dir_fp); in smb2_query_dir()