Lines Matching refs:lower_dir
29 struct inode **lower_dir) in lock_parent() argument
34 *lower_dir = d_inode(lower_dir_dentry); in lock_parent()
37 inode_lock_nested(*lower_dir, I_MUTEX_PARENT); in lock_parent()
133 struct inode *lower_dir; in ecryptfs_do_unlink() local
136 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_do_unlink()
142 rc = vfs_unlink(&nop_mnt_idmap, lower_dir, lower_dentry, in ecryptfs_do_unlink()
149 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_do_unlink()
154 inode_unlock(lower_dir); in ecryptfs_do_unlink()
178 struct inode *lower_dir; in ecryptfs_do_create() local
181 rc = lock_parent(ecryptfs_dentry, &lower_dentry, &lower_dir); in ecryptfs_do_create()
183 rc = vfs_create(&nop_mnt_idmap, lower_dir, in ecryptfs_do_create()
194 vfs_unlink(&nop_mnt_idmap, lower_dir, lower_dentry, NULL); in ecryptfs_do_create()
197 fsstack_copy_attr_times(directory_inode, lower_dir); in ecryptfs_do_create()
198 fsstack_copy_inode_size(directory_inode, lower_dir); in ecryptfs_do_create()
200 inode_unlock(lower_dir); in ecryptfs_do_create()
429 struct inode *lower_dir; in ecryptfs_link() local
435 rc = lock_parent(new_dentry, &lower_new_dentry, &lower_dir); in ecryptfs_link()
437 rc = vfs_link(lower_old_dentry, &nop_mnt_idmap, lower_dir, in ecryptfs_link()
444 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_link()
445 fsstack_copy_inode_size(dir, lower_dir); in ecryptfs_link()
450 inode_unlock(lower_dir); in ecryptfs_link()
465 struct inode *lower_dir; in ecryptfs_symlink() local
470 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_symlink()
481 rc = vfs_symlink(&nop_mnt_idmap, lower_dir, lower_dentry, in ecryptfs_symlink()
489 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_symlink()
490 fsstack_copy_inode_size(dir, lower_dir); in ecryptfs_symlink()
492 inode_unlock(lower_dir); in ecryptfs_symlink()
503 struct inode *lower_dir; in ecryptfs_mkdir() local
505 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_mkdir()
507 rc = vfs_mkdir(&nop_mnt_idmap, lower_dir, in ecryptfs_mkdir()
514 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_mkdir()
515 fsstack_copy_inode_size(dir, lower_dir); in ecryptfs_mkdir()
516 set_nlink(dir, lower_dir->i_nlink); in ecryptfs_mkdir()
518 inode_unlock(lower_dir); in ecryptfs_mkdir()
527 struct inode *lower_dir; in ecryptfs_rmdir() local
530 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_rmdir()
536 rc = vfs_rmdir(&nop_mnt_idmap, lower_dir, lower_dentry); in ecryptfs_rmdir()
540 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_rmdir()
541 set_nlink(dir, lower_dir->i_nlink); in ecryptfs_rmdir()
544 inode_unlock(lower_dir); in ecryptfs_rmdir()
556 struct inode *lower_dir; in ecryptfs_mknod() local
558 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_mknod()
560 rc = vfs_mknod(&nop_mnt_idmap, lower_dir, in ecryptfs_mknod()
567 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_mknod()
568 fsstack_copy_inode_size(dir, lower_dir); in ecryptfs_mknod()
570 inode_unlock(lower_dir); in ecryptfs_mknod()