Lines Matching refs:filp
226 static inline loff_t hash2pos(struct file *filp, __u32 major, __u32 minor) in hash2pos() argument
228 if ((filp->f_mode & FMODE_32BITHASH) || in hash2pos()
229 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in hash2pos()
235 static inline __u32 pos2maj_hash(struct file *filp, loff_t pos) in pos2maj_hash() argument
237 if ((filp->f_mode & FMODE_32BITHASH) || in pos2maj_hash()
238 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in pos2maj_hash()
244 static inline __u32 pos2min_hash(struct file *filp, loff_t pos) in pos2min_hash() argument
246 if ((filp->f_mode & FMODE_32BITHASH) || in pos2min_hash()
247 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in pos2min_hash()
256 static inline loff_t ext3_get_htree_eof(struct file *filp) in ext3_get_htree_eof() argument
258 if ((filp->f_mode & FMODE_32BITHASH) || in ext3_get_htree_eof()
259 (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) in ext3_get_htree_eof()
324 static struct dir_private_info *ext3_htree_create_dir_info(struct file *filp, in ext3_htree_create_dir_info() argument
332 p->curr_hash = pos2maj_hash(filp, pos); in ext3_htree_create_dir_info()
333 p->curr_minor_hash = pos2min_hash(filp, pos); in ext3_htree_create_dir_info()
519 static int ext3_release_dir (struct inode * inode, struct file * filp) in ext3_release_dir() argument
521 if (filp->private_data) in ext3_release_dir()
522 ext3_htree_free_dir_info(filp->private_data); in ext3_release_dir()