Lines Matching refs:d_inode
44 mutex_lock_nested(&(d_inode(dir)->i_mutex), I_MUTEX_PARENT); in lock_parent()
50 mutex_unlock(&d_inode(dir)->i_mutex); in unlock_dir()
134 struct inode *inode = ecryptfs_get_inode(d_inode(lower_dentry), sb); in ecryptfs_interpose()
191 rc = vfs_create(d_inode(lower_dir_dentry), lower_dentry, mode, true); in ecryptfs_do_create()
198 inode = __ecryptfs_get_inode(d_inode(lower_dentry), in ecryptfs_do_create()
201 vfs_unlink(d_inode(lower_dir_dentry), lower_dentry, NULL); in ecryptfs_do_create()
204 fsstack_copy_attr_times(directory_inode, d_inode(lower_dir_dentry)); in ecryptfs_do_create()
205 fsstack_copy_inode_size(directory_inode, d_inode(lower_dir_dentry)); in ecryptfs_do_create()
334 struct inode *inode, *lower_inode = d_inode(lower_dentry); in ecryptfs_lookup_interpose()
349 fsstack_copy_attr_atime(dir_inode, d_inode(lower_dentry->d_parent)); in ecryptfs_lookup_interpose()
402 mutex_lock(&d_inode(lower_dir_dentry)->i_mutex); in ecryptfs_lookup()
406 mutex_unlock(&d_inode(lower_dir_dentry)->i_mutex); in ecryptfs_lookup()
431 mutex_lock(&d_inode(lower_dir_dentry)->i_mutex); in ecryptfs_lookup()
435 mutex_unlock(&d_inode(lower_dir_dentry)->i_mutex); in ecryptfs_lookup()
460 file_size_save = i_size_read(d_inode(old_dentry)); in ecryptfs_link()
466 rc = vfs_link(lower_old_dentry, d_inode(lower_dir_dentry), in ecryptfs_link()
473 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_link()
474 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_link()
475 set_nlink(d_inode(old_dentry), in ecryptfs_link()
476 ecryptfs_inode_to_lower(d_inode(old_dentry))->i_nlink); in ecryptfs_link()
477 i_size_write(d_inode(new_dentry), file_size_save); in ecryptfs_link()
487 return ecryptfs_do_unlink(dir, dentry, d_inode(dentry)); in ecryptfs_unlink()
512 rc = vfs_symlink(d_inode(lower_dir_dentry), lower_dentry, in ecryptfs_symlink()
520 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_symlink()
521 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_symlink()
538 rc = vfs_mkdir(d_inode(lower_dir_dentry), lower_dentry, mode); in ecryptfs_mkdir()
544 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_mkdir()
545 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_mkdir()
546 set_nlink(dir, d_inode(lower_dir_dentry)->i_nlink); in ecryptfs_mkdir()
564 rc = vfs_rmdir(d_inode(lower_dir_dentry), lower_dentry); in ecryptfs_rmdir()
567 clear_nlink(d_inode(dentry)); in ecryptfs_rmdir()
568 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_rmdir()
569 set_nlink(dir, d_inode(lower_dir_dentry)->i_nlink); in ecryptfs_rmdir()
586 rc = vfs_mknod(d_inode(lower_dir_dentry), lower_dentry, mode, dev); in ecryptfs_mknod()
592 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_mknod()
593 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_mknod()
619 target_inode = d_inode(new_dentry); in ecryptfs_rename()
631 rc = vfs_rename(d_inode(lower_old_dir_dentry), lower_old_dentry, in ecryptfs_rename()
632 d_inode(lower_new_dir_dentry), lower_new_dentry, in ecryptfs_rename()
639 fsstack_copy_attr_all(new_dir, d_inode(lower_new_dir_dentry)); in ecryptfs_rename()
641 fsstack_copy_attr_all(old_dir, d_inode(lower_old_dir_dentry)); in ecryptfs_rename()
664 rc = d_inode(lower_dentry)->i_op->readlink(lower_dentry, in ecryptfs_readlink_lower()
683 fsstack_copy_attr_atime(d_inode(dentry), in ecryptfs_follow_link()
684 d_inode(ecryptfs_dentry_to_lower(dentry))); in ecryptfs_follow_link()
738 struct inode *inode = d_inode(dentry); in truncate_upper()
751 crypt_stat = &ecryptfs_inode_to_private(d_inode(dentry))->crypt_stat; in truncate_upper()
858 rc = ecryptfs_inode_newsize_ok(d_inode(dentry), new_length); in ecryptfs_truncate()
866 mutex_lock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_truncate()
868 mutex_unlock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_truncate()
900 crypt_stat = &ecryptfs_inode_to_private(d_inode(dentry))->crypt_stat; in ecryptfs_setattr()
903 inode = d_inode(dentry); in ecryptfs_setattr()
967 mutex_lock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_setattr()
969 mutex_unlock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_setattr()
983 generic_fillattr(d_inode(dentry), stat); in ecryptfs_getattr_link()
1007 fsstack_copy_attr_all(d_inode(dentry), in ecryptfs_getattr()
1008 ecryptfs_inode_to_lower(d_inode(dentry))); in ecryptfs_getattr()
1009 generic_fillattr(d_inode(dentry), stat); in ecryptfs_getattr()
1023 if (!d_inode(lower_dentry)->i_op->setxattr) { in ecryptfs_setxattr()
1030 fsstack_copy_attr_all(d_inode(dentry), d_inode(lower_dentry)); in ecryptfs_setxattr()
1041 if (!d_inode(lower_dentry)->i_op->getxattr) { in ecryptfs_getxattr_lower()
1045 mutex_lock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_getxattr_lower()
1046 rc = d_inode(lower_dentry)->i_op->getxattr(lower_dentry, name, value, in ecryptfs_getxattr_lower()
1048 mutex_unlock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_getxattr_lower()
1068 if (!d_inode(lower_dentry)->i_op->listxattr) { in ecryptfs_listxattr()
1072 mutex_lock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_listxattr()
1073 rc = d_inode(lower_dentry)->i_op->listxattr(lower_dentry, list, size); in ecryptfs_listxattr()
1074 mutex_unlock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_listxattr()
1085 if (!d_inode(lower_dentry)->i_op->removexattr) { in ecryptfs_removexattr()
1089 mutex_lock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_removexattr()
1090 rc = d_inode(lower_dentry)->i_op->removexattr(lower_dentry, name); in ecryptfs_removexattr()
1091 mutex_unlock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_removexattr()