Lines Matching refs:dir

187 struct inode *hfs_new_inode(struct inode *dir, const struct qstr *name, umode_t mode)  in hfs_new_inode()  argument
189 struct super_block *sb = dir->i_sb; in hfs_new_inode()
197 hfs_cat_build_key(sb, (btree_key *)&HFS_I(inode)->cat_key, dir->i_ino, name); in hfs_new_inode()
211 if (dir->i_ino == HFS_ROOT_CNID) in hfs_new_inode()
220 if (dir->i_ino == HFS_ROOT_CNID) in hfs_new_inode()
309 return inode->i_ino == be32_to_cpu(rec->dir.DirID); in hfs_test_inode()
368 inode->i_ino = be32_to_cpu(rec->dir.DirID); in hfs_read_inode()
369 inode->i_size = be16_to_cpu(rec->dir.Val) + 2; in hfs_read_inode()
373 hfs_m_to_utime(rec->dir.MdDat)); in hfs_read_inode()
400 cnid = be32_to_cpu(rec->dir.DirID); in hfs_iget()
477 be32_to_cpu(rec.dir.DirID) != inode->i_ino) { in hfs_write_inode()
480 rec.dir.MdDat = hfs_u_to_mtime(inode->i_mtime); in hfs_write_inode()
481 rec.dir.Val = cpu_to_be16(inode->i_size - 2); in hfs_write_inode()
519 static struct dentry *hfs_file_lookup(struct inode *dir, struct dentry *dentry, in hfs_file_lookup() argument
527 if (HFS_IS_RSRC(dir) || strcmp(dentry->d_name.name, "rsrc")) in hfs_file_lookup()
530 inode = HFS_I(dir)->rsrc_inode; in hfs_file_lookup()
534 inode = new_inode(dir->i_sb); in hfs_file_lookup()
538 res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd); in hfs_file_lookup()
543 fd.search_key->cat = HFS_I(dir)->cat_key; in hfs_file_lookup()
554 HFS_I(inode)->rsrc_inode = dir; in hfs_file_lookup()
555 HFS_I(dir)->rsrc_inode = inode; in hfs_file_lookup()
556 igrab(dir); in hfs_file_lookup()