Lines Matching refs:dir
20 static struct dentry *hfs_lookup(struct inode *dir, struct dentry *dentry, in hfs_lookup() argument
28 res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd); in hfs_lookup()
31 hfs_cat_build_key(dir->i_sb, fd.search_key, dir->i_ino, &dentry->d_name); in hfs_lookup()
37 inode = hfs_iget(dir->i_sb, &fd.search_key->cat, &rec); in hfs_lookup()
126 be32_to_cpu(entry.dir.DirID), DT_DIR)) in hfs_readdir()
192 static int hfs_create(struct mnt_idmap *idmap, struct inode *dir, in hfs_create() argument
198 inode = hfs_new_inode(dir, &dentry->d_name, mode); in hfs_create()
202 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_create()
222 static int hfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in hfs_mkdir() argument
228 inode = hfs_new_inode(dir, &dentry->d_name, S_IFDIR | mode); in hfs_mkdir()
232 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_mkdir()
255 static int hfs_remove(struct inode *dir, struct dentry *dentry) in hfs_remove() argument
262 res = hfs_cat_delete(inode->i_ino, dir, &dentry->d_name); in hfs_remove()