Lines Matching refs:filp

80 			   struct inode *dir, struct file *filp,  in __ext4_check_dir_entry()  argument
114 if (filp) in __ext4_check_dir_entry()
115 ext4_error_file(filp, function, line, bh->b_blocknr, in __ext4_check_dir_entry()
362 static inline loff_t hash2pos(struct file *filp, __u32 major, __u32 minor) in hash2pos() argument
364 if ((filp->f_mode & FMODE_32BITHASH) || in hash2pos()
365 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in hash2pos()
371 static inline __u32 pos2maj_hash(struct file *filp, loff_t pos) in pos2maj_hash() argument
373 if ((filp->f_mode & FMODE_32BITHASH) || in pos2maj_hash()
374 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in pos2maj_hash()
380 static inline __u32 pos2min_hash(struct file *filp, loff_t pos) in pos2min_hash() argument
382 if ((filp->f_mode & FMODE_32BITHASH) || in pos2min_hash()
383 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in pos2min_hash()
392 static inline loff_t ext4_get_htree_eof(struct file *filp) in ext4_get_htree_eof() argument
394 if ((filp->f_mode & FMODE_32BITHASH) || in ext4_get_htree_eof()
395 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in ext4_get_htree_eof()
462 static void ext4_htree_init_dir_info(struct file *filp, loff_t pos) in ext4_htree_init_dir_info() argument
464 struct dir_private_info *p = filp->private_data; in ext4_htree_init_dir_info()
466 if (is_dx_dir(file_inode(filp)) && !p->initialized) { in ext4_htree_init_dir_info()
467 p->curr_hash = pos2maj_hash(filp, pos); in ext4_htree_init_dir_info()
468 p->curr_minor_hash = pos2min_hash(filp, pos); in ext4_htree_init_dir_info()
655 static int ext4_release_dir(struct inode *inode, struct file *filp) in ext4_release_dir() argument
657 if (filp->private_data) in ext4_release_dir()
658 ext4_htree_free_dir_info(filp->private_data); in ext4_release_dir()