Lines Matching refs:filp
62 struct inode *dir, struct file *filp, in __ext4_check_dir_entry() argument
85 if (filp) in __ext4_check_dir_entry()
86 ext4_error_file(filp, function, line, bh->b_blocknr, in __ext4_check_dir_entry()
300 static inline loff_t hash2pos(struct file *filp, __u32 major, __u32 minor) in hash2pos() argument
302 if ((filp->f_mode & FMODE_32BITHASH) || in hash2pos()
303 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in hash2pos()
309 static inline __u32 pos2maj_hash(struct file *filp, loff_t pos) in pos2maj_hash() argument
311 if ((filp->f_mode & FMODE_32BITHASH) || in pos2maj_hash()
312 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in pos2maj_hash()
318 static inline __u32 pos2min_hash(struct file *filp, loff_t pos) in pos2min_hash() argument
320 if ((filp->f_mode & FMODE_32BITHASH) || in pos2min_hash()
321 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in pos2min_hash()
330 static inline loff_t ext4_get_htree_eof(struct file *filp) in ext4_get_htree_eof() argument
332 if ((filp->f_mode & FMODE_32BITHASH) || in ext4_get_htree_eof()
333 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in ext4_get_htree_eof()
398 static struct dir_private_info *ext4_htree_create_dir_info(struct file *filp, in ext4_htree_create_dir_info() argument
406 p->curr_hash = pos2maj_hash(filp, pos); in ext4_htree_create_dir_info()
407 p->curr_minor_hash = pos2min_hash(filp, pos); in ext4_htree_create_dir_info()
601 static int ext4_release_dir(struct inode *inode, struct file *filp) in ext4_release_dir() argument
603 if (filp->private_data) in ext4_release_dir()
604 ext4_htree_free_dir_info(filp->private_data); in ext4_release_dir()