Lines Matching refs:lower_dir
27 struct inode **lower_dir) in lock_parent() argument
32 *lower_dir = d_inode(lower_dir_dentry); in lock_parent()
35 inode_lock_nested(*lower_dir, I_MUTEX_PARENT); in lock_parent()
131 struct inode *lower_dir; in ecryptfs_do_unlink() local
134 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_do_unlink()
140 rc = vfs_unlink(&init_user_ns, lower_dir, lower_dentry, in ecryptfs_do_unlink()
147 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_do_unlink()
152 inode_unlock(lower_dir); in ecryptfs_do_unlink()
176 struct inode *lower_dir; in ecryptfs_do_create() local
179 rc = lock_parent(ecryptfs_dentry, &lower_dentry, &lower_dir); in ecryptfs_do_create()
181 rc = vfs_create(&init_user_ns, lower_dir, in ecryptfs_do_create()
192 vfs_unlink(&init_user_ns, lower_dir, lower_dentry, NULL); in ecryptfs_do_create()
195 fsstack_copy_attr_times(directory_inode, lower_dir); in ecryptfs_do_create()
196 fsstack_copy_inode_size(directory_inode, lower_dir); in ecryptfs_do_create()
198 inode_unlock(lower_dir); in ecryptfs_do_create()
427 struct inode *lower_dir; in ecryptfs_link() local
433 rc = lock_parent(new_dentry, &lower_new_dentry, &lower_dir); in ecryptfs_link()
435 rc = vfs_link(lower_old_dentry, &init_user_ns, lower_dir, in ecryptfs_link()
442 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_link()
443 fsstack_copy_inode_size(dir, lower_dir); in ecryptfs_link()
448 inode_unlock(lower_dir); in ecryptfs_link()
463 struct inode *lower_dir; in ecryptfs_symlink() local
468 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_symlink()
479 rc = vfs_symlink(&init_user_ns, lower_dir, lower_dentry, in ecryptfs_symlink()
487 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_symlink()
488 fsstack_copy_inode_size(dir, lower_dir); in ecryptfs_symlink()
490 inode_unlock(lower_dir); in ecryptfs_symlink()
501 struct inode *lower_dir; in ecryptfs_mkdir() local
503 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_mkdir()
505 rc = vfs_mkdir(&init_user_ns, lower_dir, in ecryptfs_mkdir()
512 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_mkdir()
513 fsstack_copy_inode_size(dir, lower_dir); in ecryptfs_mkdir()
514 set_nlink(dir, lower_dir->i_nlink); in ecryptfs_mkdir()
516 inode_unlock(lower_dir); in ecryptfs_mkdir()
525 struct inode *lower_dir; in ecryptfs_rmdir() local
528 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_rmdir()
534 rc = vfs_rmdir(&init_user_ns, lower_dir, lower_dentry); in ecryptfs_rmdir()
538 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_rmdir()
539 set_nlink(dir, lower_dir->i_nlink); in ecryptfs_rmdir()
542 inode_unlock(lower_dir); in ecryptfs_rmdir()
554 struct inode *lower_dir; in ecryptfs_mknod() local
556 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_mknod()
558 rc = vfs_mknod(&init_user_ns, lower_dir, in ecryptfs_mknod()
565 fsstack_copy_attr_times(dir, lower_dir); in ecryptfs_mknod()
566 fsstack_copy_inode_size(dir, lower_dir); in ecryptfs_mknod()
568 inode_unlock(lower_dir); in ecryptfs_mknod()