• Home
  • Raw
  • Download

Lines Matching refs:dir

56 static struct dentry *ext2_lookup(struct inode * dir, struct dentry *dentry, unsigned int flags)  in ext2_lookup()  argument
64 ino = ext2_inode_by_name(dir, &dentry->d_name); in ext2_lookup()
67 inode = ext2_iget(dir->i_sb, ino); in ext2_lookup()
69 ext2_error(dir->i_sb, __func__, in ext2_lookup()
95 static int ext2_create (struct inode * dir, struct dentry * dentry, umode_t mode, bool excl) in ext2_create() argument
100 err = dquot_initialize(dir); in ext2_create()
104 inode = ext2_new_inode(dir, mode, &dentry->d_name); in ext2_create()
113 static int ext2_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) in ext2_tmpfile() argument
115 struct inode *inode = ext2_new_inode(dir, mode, NULL); in ext2_tmpfile()
126 static int ext2_mknod (struct inode * dir, struct dentry *dentry, umode_t mode, dev_t rdev) in ext2_mknod() argument
131 err = dquot_initialize(dir); in ext2_mknod()
135 inode = ext2_new_inode (dir, mode, &dentry->d_name); in ext2_mknod()
148 static int ext2_symlink (struct inode * dir, struct dentry * dentry, in ext2_symlink() argument
151 struct super_block * sb = dir->i_sb; in ext2_symlink()
159 err = dquot_initialize(dir); in ext2_symlink()
163 inode = ext2_new_inode (dir, S_IFLNK | S_IRWXUGO, &dentry->d_name); in ext2_symlink()
198 static int ext2_link (struct dentry * old_dentry, struct inode * dir, in ext2_link() argument
204 err = dquot_initialize(dir); in ext2_link()
222 static int ext2_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) in ext2_mkdir() argument
227 err = dquot_initialize(dir); in ext2_mkdir()
231 inode_inc_link_count(dir); in ext2_mkdir()
233 inode = ext2_new_inode(dir, S_IFDIR | mode, &dentry->d_name); in ext2_mkdir()
247 err = ext2_make_empty(inode, dir); in ext2_mkdir()
264 inode_dec_link_count(dir); in ext2_mkdir()
268 static int ext2_unlink(struct inode * dir, struct dentry *dentry) in ext2_unlink() argument
275 err = dquot_initialize(dir); in ext2_unlink()
279 de = ext2_find_entry (dir, &dentry->d_name, &page); in ext2_unlink()
289 inode->i_ctime = dir->i_ctime; in ext2_unlink()
296 static int ext2_rmdir (struct inode * dir, struct dentry *dentry) in ext2_rmdir() argument
302 err = ext2_unlink(dir, dentry); in ext2_rmdir()
306 inode_dec_link_count(dir); in ext2_rmdir()