Lines Matching defs:file
45 static void dump_cifs_file_struct(struct file *file, char *label)
49 if (file) {
50 cf = file->private_data;
52 cifs_dbg(FYI, "empty cifs private file data\n");
64 static inline void dump_cifs_file_struct(struct file *file, char *label)
175 * to determine which type of special file they represent.
283 * file. special files should have the REPARSE
385 initiate_cifs_search(const unsigned int xid, struct file *file,
391 struct cifs_sb_info *cifs_sb = CIFS_FILE_SB(file);
396 if (file->private_data == NULL) {
407 file->private_data = cifsFile;
411 cifsFile = file->private_data;
425 cifs_dbg(FYI, "Full path: %s start at: %lld\n", full_path, file->f_pos);
669 static int is_dir_changed(struct file *file)
671 struct inode *inode = file_inode(file);
706 struct file *file, char *full_path,
714 struct cifsFileInfo *cfile = file->private_data;
715 struct cifs_sb_info *cifs_sb = CIFS_FILE_SB(file);
737 dump_cifs_file_struct(file, "In fce ");
739 is_dir_changed(file)) || (index_to_find < first_entry_in_buffer)) {
760 rc = initiate_cifs_search(xid, file, full_path);
836 static int cifs_filldir(char *find_entry, struct file *file,
840 struct cifsFileInfo *file_info = file->private_data;
841 struct super_block *sb = file_inode(file)->i_sb;
925 cifs_prime_dcache(file_dentry(file), &name, &fattr);
932 int cifs_readdir(struct file *file, struct dir_context *ctx)
948 full_path = build_path_from_dentry(file_dentry(file));
958 if (file->private_data == NULL) {
959 rc = initiate_cifs_search(xid, file, full_path);
965 if (!dir_emit_dots(file, ctx))
973 cifsFile = file->private_data;
986 rc = find_cifs_entry(xid, tcon, ctx->pos, file, full_path,
1022 rc = cifs_filldir(current_entry, file, ctx,