Lines Matching defs:dir
108 /* Caller must hold i_mutex on both workdir and dir */
109 int ovl_cleanup_and_whiteout(struct ovl_fs *ofs, struct inode *dir,
125 err = ovl_do_rename(wdir, whiteout, dir, dentry, flags);
140 int ovl_mkdir_real(struct inode *dir, struct dentry **newdentry, umode_t mode)
145 err = ovl_do_mkdir(dir, dentry, mode);
170 struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry,
183 err = ovl_do_link(attr->hardlink, dir, newdentry);
187 err = ovl_do_create(dir, newdentry, attr->mode);
192 err = ovl_mkdir_real(dir, &newdentry, attr->mode);
199 err = ovl_do_mknod(dir, newdentry, attr->mode,
204 err = ovl_do_symlink(dir, newdentry, attr->link);
247 * Fail with -EIO when trying to create opaque dir and upper doesn't
580 * new parent dir "impure".
667 static int ovl_create(struct inode *dir, struct dentry *dentry, umode_t mode,
673 static int ovl_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
678 static int ovl_mknod(struct inode *dir, struct dentry *dentry, umode_t mode,
688 static int ovl_symlink(struct inode *dir, struct dentry *dentry,
813 struct inode *dir = upperdir->d_inode;
825 inode_lock_nested(dir, I_MUTEX_PARENT);
838 err = vfs_rmdir(dir, upper);
840 err = vfs_unlink(dir, upper, NULL);
854 inode_unlock(dir);
946 static int ovl_unlink(struct inode *dir, struct dentry *dentry)
951 static int ovl_rmdir(struct inode *dir, struct dentry *dentry)
1040 * For non-dir hardlinked files, we need absolute redirects
1181 * When moving a merge dir or non-dir with copy up origin into
1182 * a new parent, we are marking the new parent dir "impure".
1183 * When ovl_iterate() iterates an "impure" upper dir, it will