Lines Matching refs:filp
67 struct inode *dir, struct file *filp, in __ext4_check_dir_entry() argument
95 if (filp) in __ext4_check_dir_entry()
96 ext4_error_file(filp, function, line, bh->b_blocknr, in __ext4_check_dir_entry()
316 static inline loff_t hash2pos(struct file *filp, __u32 major, __u32 minor) in hash2pos() argument
318 if ((filp->f_mode & FMODE_32BITHASH) || in hash2pos()
319 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in hash2pos()
325 static inline __u32 pos2maj_hash(struct file *filp, loff_t pos) in pos2maj_hash() argument
327 if ((filp->f_mode & FMODE_32BITHASH) || in pos2maj_hash()
328 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in pos2maj_hash()
334 static inline __u32 pos2min_hash(struct file *filp, loff_t pos) in pos2min_hash() argument
336 if ((filp->f_mode & FMODE_32BITHASH) || in pos2min_hash()
337 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in pos2min_hash()
346 static inline loff_t ext4_get_htree_eof(struct file *filp) in ext4_get_htree_eof() argument
348 if ((filp->f_mode & FMODE_32BITHASH) || in ext4_get_htree_eof()
349 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in ext4_get_htree_eof()
416 static struct dir_private_info *ext4_htree_create_dir_info(struct file *filp, in ext4_htree_create_dir_info() argument
424 p->curr_hash = pos2maj_hash(filp, pos); in ext4_htree_create_dir_info()
425 p->curr_minor_hash = pos2min_hash(filp, pos); in ext4_htree_create_dir_info()
619 static int ext4_dir_open(struct inode * inode, struct file * filp) in ext4_dir_open() argument
626 static int ext4_release_dir(struct inode *inode, struct file *filp) in ext4_release_dir() argument
628 if (filp->private_data) in ext4_release_dir()
629 ext4_htree_free_dir_info(filp->private_data); in ext4_release_dir()