Lines Matching refs:dir
284 struct inode *dir = ofs->workbasedir->d_inode; in ovl_workdir_create() local
290 inode_lock_nested(dir, I_MUTEX_PARENT); in ovl_workdir_create()
309 err = ovl_workdir_cleanup(ofs, dir, mnt, work, 0); in ovl_workdir_create()
318 err = ovl_mkdir_real(ofs, dir, &work, attr.ia_mode); in ovl_workdir_create()
359 inode_unlock(dir); in ovl_workdir_create()
502 static int ovl_setup_trap(struct super_block *sb, struct dentry *dir, in ovl_setup_trap() argument
508 trap = ovl_get_trap_inode(sb, dir); in ovl_setup_trap()
607 struct inode *dir = d_inode(workdir); in ovl_check_rename_whiteout() local
614 inode_lock_nested(dir, I_MUTEX_PARENT); in ovl_check_rename_whiteout()
630 err = ovl_do_rename(ofs, dir, temp, dir, dest, RENAME_WHITEOUT); in ovl_check_rename_whiteout()
646 ovl_cleanup(ofs, dir, whiteout); in ovl_check_rename_whiteout()
650 ovl_cleanup(ofs, dir, temp); in ovl_check_rename_whiteout()
656 inode_unlock(dir); in ovl_check_rename_whiteout()