• Home
  • Raw
  • Download

Lines Matching refs:file

30 static int ext4_dx_readdir(struct file *, struct dir_context *);
61 struct inode *dir, struct file *filp, in __ext4_check_dir_entry()
102 static int ext4_readdir(struct file *file, struct dir_context *ctx) in ext4_readdir() argument
108 struct inode *inode = file_inode(file); in ext4_readdir()
121 err = ext4_dx_readdir(file, ctx); in ext4_readdir()
129 ext4_clear_inode_flag(file_inode(file), in ext4_readdir()
135 err = ext4_read_inline_dir(file, ctx, in ext4_readdir()
163 if (!ra_has_index(&file->f_ra, index)) in ext4_readdir()
166 &file->f_ra, file, in ext4_readdir()
168 file->f_ra.prev_pos = (loff_t)index << PAGE_SHIFT; in ext4_readdir()
179 EXT4_ERROR_FILE(file, 0, in ext4_readdir()
196 EXT4_ERROR_FILE(file, 0, "directory fails checksum " in ext4_readdir()
210 if (file->f_version != inode->i_version) { in ext4_readdir()
229 file->f_version = inode->i_version; in ext4_readdir()
235 if (ext4_check_dir_entry(inode, file, de, bh, in ext4_readdir()
311 static inline loff_t hash2pos(struct file *filp, __u32 major, __u32 minor) in hash2pos()
320 static inline __u32 pos2maj_hash(struct file *filp, loff_t pos) in pos2maj_hash()
329 static inline __u32 pos2min_hash(struct file *filp, loff_t pos) in pos2min_hash()
341 static inline loff_t ext4_get_htree_eof(struct file *filp) in ext4_get_htree_eof()
362 static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) in ext4_dir_llseek() argument
364 struct inode *inode = file->f_mapping->host; in ext4_dir_llseek()
366 loff_t htree_max = ext4_get_htree_eof(file); in ext4_dir_llseek()
369 return generic_file_llseek_size(file, offset, whence, in ext4_dir_llseek()
372 return ext4_llseek(file, offset, whence); in ext4_dir_llseek()
409 static struct dir_private_info *ext4_htree_create_dir_info(struct file *filp, in ext4_htree_create_dir_info()
435 int ext4_htree_store_dirent(struct file *dir_file, __u32 hash, in ext4_htree_store_dirent()
498 static int call_filldir(struct file *file, struct dir_context *ctx, in call_filldir() argument
501 struct dir_private_info *info = file->private_data; in call_filldir()
502 struct inode *inode = file_inode(file); in call_filldir()
511 ctx->pos = hash2pos(file, fname->hash, fname->minor_hash); in call_filldir()
525 static int ext4_dx_readdir(struct file *file, struct dir_context *ctx) in ext4_dx_readdir() argument
527 struct dir_private_info *info = file->private_data; in ext4_dx_readdir()
528 struct inode *inode = file_inode(file); in ext4_dx_readdir()
533 info = ext4_htree_create_dir_info(file, ctx->pos); in ext4_dx_readdir()
536 file->private_data = info; in ext4_dx_readdir()
539 if (ctx->pos == ext4_get_htree_eof(file)) in ext4_dx_readdir()
547 info->curr_hash = pos2maj_hash(file, ctx->pos); in ext4_dx_readdir()
548 info->curr_minor_hash = pos2min_hash(file, ctx->pos); in ext4_dx_readdir()
556 if (call_filldir(file, ctx, info->extra_fname)) in ext4_dx_readdir()
570 (file->f_version != inode->i_version)) { in ext4_dx_readdir()
573 file->f_version = inode->i_version; in ext4_dx_readdir()
574 ret = ext4_htree_fill_tree(file, info->curr_hash, in ext4_dx_readdir()
580 ctx->pos = ext4_get_htree_eof(file); in ext4_dx_readdir()
589 if (call_filldir(file, ctx, fname)) in ext4_dx_readdir()
600 ctx->pos = ext4_get_htree_eof(file); in ext4_dx_readdir()
612 static int ext4_dir_open(struct inode * inode, struct file * filp) in ext4_dir_open()
619 static int ext4_release_dir(struct inode *inode, struct file *filp) in ext4_release_dir()