Lines Matching refs:lower_dir_dentry
131 struct dentry *lower_dir_dentry; in ecryptfs_do_unlink() local
135 lower_dir_dentry = ecryptfs_dentry_to_lower(dentry->d_parent); in ecryptfs_do_unlink()
136 lower_dir_inode = d_inode(lower_dir_dentry); in ecryptfs_do_unlink()
139 if (lower_dentry->d_parent != lower_dir_dentry) in ecryptfs_do_unlink()
178 struct dentry *lower_dir_dentry; in ecryptfs_do_create() local
182 lower_dir_dentry = lock_parent(lower_dentry); in ecryptfs_do_create()
183 rc = vfs_create(d_inode(lower_dir_dentry), lower_dentry, mode, true); in ecryptfs_do_create()
193 vfs_unlink(d_inode(lower_dir_dentry), lower_dentry, NULL); in ecryptfs_do_create()
196 fsstack_copy_attr_times(directory_inode, d_inode(lower_dir_dentry)); in ecryptfs_do_create()
197 fsstack_copy_inode_size(directory_inode, d_inode(lower_dir_dentry)); in ecryptfs_do_create()
199 unlock_dir(lower_dir_dentry); in ecryptfs_do_create()
388 struct dentry *lower_dir_dentry, *lower_dentry; in ecryptfs_lookup() local
394 lower_dir_dentry = ecryptfs_dentry_to_lower(ecryptfs_dentry->d_parent); in ecryptfs_lookup()
410 lower_dentry = lookup_one_len_unlocked(name, lower_dir_dentry, len); in ecryptfs_lookup()
429 struct dentry *lower_dir_dentry; in ecryptfs_link() local
438 lower_dir_dentry = lock_parent(lower_new_dentry); in ecryptfs_link()
439 rc = vfs_link(lower_old_dentry, d_inode(lower_dir_dentry), in ecryptfs_link()
446 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_link()
447 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_link()
452 unlock_dir(lower_dir_dentry); in ecryptfs_link()
468 struct dentry *lower_dir_dentry; in ecryptfs_symlink() local
475 lower_dir_dentry = lock_parent(lower_dentry); in ecryptfs_symlink()
484 rc = vfs_symlink(d_inode(lower_dir_dentry), lower_dentry, in ecryptfs_symlink()
492 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_symlink()
493 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_symlink()
495 unlock_dir(lower_dir_dentry); in ecryptfs_symlink()
506 struct dentry *lower_dir_dentry; in ecryptfs_mkdir() local
509 lower_dir_dentry = lock_parent(lower_dentry); in ecryptfs_mkdir()
510 rc = vfs_mkdir(d_inode(lower_dir_dentry), lower_dentry, mode); in ecryptfs_mkdir()
516 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_mkdir()
517 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_mkdir()
518 set_nlink(dir, d_inode(lower_dir_dentry)->i_nlink); in ecryptfs_mkdir()
520 unlock_dir(lower_dir_dentry); in ecryptfs_mkdir()
529 struct dentry *lower_dir_dentry; in ecryptfs_rmdir() local
534 lower_dir_dentry = ecryptfs_dentry_to_lower(dentry->d_parent); in ecryptfs_rmdir()
535 lower_dir_inode = d_inode(lower_dir_dentry); in ecryptfs_rmdir()
539 if (lower_dentry->d_parent != lower_dir_dentry) in ecryptfs_rmdir()
562 struct dentry *lower_dir_dentry; in ecryptfs_mknod() local
565 lower_dir_dentry = lock_parent(lower_dentry); in ecryptfs_mknod()
566 rc = vfs_mknod(d_inode(lower_dir_dentry), lower_dentry, mode, dev); in ecryptfs_mknod()
572 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_mknod()
573 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_mknod()
575 unlock_dir(lower_dir_dentry); in ecryptfs_mknod()