Lines Matching refs:dir

57 static struct dentry *ext2_lookup(struct inode * dir, struct dentry *dentry, unsigned int flags)  in ext2_lookup()  argument
65 ino = ext2_inode_by_name(dir, &dentry->d_name); in ext2_lookup()
68 inode = ext2_iget(dir->i_sb, ino); in ext2_lookup()
70 ext2_error(dir->i_sb, __func__, in ext2_lookup()
96 static int ext2_create (struct inode * dir, struct dentry * dentry, umode_t mode, bool excl) in ext2_create() argument
100 dquot_initialize(dir); in ext2_create()
102 inode = ext2_new_inode(dir, mode, &dentry->d_name); in ext2_create()
118 static int ext2_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) in ext2_tmpfile() argument
120 struct inode *inode = ext2_new_inode(dir, mode, NULL); in ext2_tmpfile()
138 static int ext2_mknod (struct inode * dir, struct dentry *dentry, umode_t mode, dev_t rdev) in ext2_mknod() argument
146 dquot_initialize(dir); in ext2_mknod()
148 inode = ext2_new_inode (dir, mode, &dentry->d_name); in ext2_mknod()
161 static int ext2_symlink (struct inode * dir, struct dentry * dentry, in ext2_symlink() argument
164 struct super_block * sb = dir->i_sb; in ext2_symlink()
172 dquot_initialize(dir); in ext2_symlink()
174 inode = ext2_new_inode (dir, S_IFLNK | S_IRWXUGO, &dentry->d_name); in ext2_symlink()
208 static int ext2_link (struct dentry * old_dentry, struct inode * dir, in ext2_link() argument
214 dquot_initialize(dir); in ext2_link()
230 static int ext2_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) in ext2_mkdir() argument
235 dquot_initialize(dir); in ext2_mkdir()
237 inode_inc_link_count(dir); in ext2_mkdir()
239 inode = ext2_new_inode(dir, S_IFDIR | mode, &dentry->d_name); in ext2_mkdir()
253 err = ext2_make_empty(inode, dir); in ext2_mkdir()
272 inode_dec_link_count(dir); in ext2_mkdir()
276 static int ext2_unlink(struct inode * dir, struct dentry *dentry) in ext2_unlink() argument
283 dquot_initialize(dir); in ext2_unlink()
285 de = ext2_find_entry (dir, &dentry->d_name, &page); in ext2_unlink()
293 inode->i_ctime = dir->i_ctime; in ext2_unlink()
300 static int ext2_rmdir (struct inode * dir, struct dentry *dentry) in ext2_rmdir() argument
306 err = ext2_unlink(dir, dentry); in ext2_rmdir()
310 inode_dec_link_count(dir); in ext2_rmdir()