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()
192 rc = vfs_create(d_inode(lower_dir_dentry), lower_dentry, mode, true); in ecryptfs_do_create()
199 inode = __ecryptfs_get_inode(d_inode(lower_dentry), in ecryptfs_do_create()
202 vfs_unlink(d_inode(lower_dir_dentry), lower_dentry, NULL); in ecryptfs_do_create()
205 fsstack_copy_attr_times(directory_inode, d_inode(lower_dir_dentry)); in ecryptfs_do_create()
206 fsstack_copy_inode_size(directory_inode, d_inode(lower_dir_dentry)); in ecryptfs_do_create()
335 struct inode *inode, *lower_inode = d_inode(lower_dentry); in ecryptfs_lookup_interpose()
350 fsstack_copy_attr_atime(dir_inode, d_inode(lower_dentry->d_parent)); in ecryptfs_lookup_interpose()
403 mutex_lock(&d_inode(lower_dir_dentry)->i_mutex); in ecryptfs_lookup()
407 mutex_unlock(&d_inode(lower_dir_dentry)->i_mutex); in ecryptfs_lookup()
432 mutex_lock(&d_inode(lower_dir_dentry)->i_mutex); in ecryptfs_lookup()
436 mutex_unlock(&d_inode(lower_dir_dentry)->i_mutex); in ecryptfs_lookup()
461 file_size_save = i_size_read(d_inode(old_dentry)); in ecryptfs_link()
467 rc = vfs_link(lower_old_dentry, d_inode(lower_dir_dentry), in ecryptfs_link()
474 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_link()
475 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_link()
476 set_nlink(d_inode(old_dentry), in ecryptfs_link()
477 ecryptfs_inode_to_lower(d_inode(old_dentry))->i_nlink); in ecryptfs_link()
478 i_size_write(d_inode(new_dentry), file_size_save); in ecryptfs_link()
488 return ecryptfs_do_unlink(dir, dentry, d_inode(dentry)); in ecryptfs_unlink()
513 rc = vfs_symlink(d_inode(lower_dir_dentry), lower_dentry, in ecryptfs_symlink()
521 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_symlink()
522 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_symlink()
539 rc = vfs_mkdir(d_inode(lower_dir_dentry), lower_dentry, mode); in ecryptfs_mkdir()
545 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_mkdir()
546 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_mkdir()
547 set_nlink(dir, d_inode(lower_dir_dentry)->i_nlink); in ecryptfs_mkdir()
565 rc = vfs_rmdir(d_inode(lower_dir_dentry), lower_dentry); in ecryptfs_rmdir()
568 clear_nlink(d_inode(dentry)); in ecryptfs_rmdir()
569 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_rmdir()
570 set_nlink(dir, d_inode(lower_dir_dentry)->i_nlink); in ecryptfs_rmdir()
587 rc = vfs_mknod(d_inode(lower_dir_dentry), lower_dentry, mode, dev); in ecryptfs_mknod()
593 fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); in ecryptfs_mknod()
594 fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); in ecryptfs_mknod()
620 target_inode = d_inode(new_dentry); in ecryptfs_rename()
632 rc = vfs_rename(d_inode(lower_old_dir_dentry), lower_old_dentry, in ecryptfs_rename()
633 d_inode(lower_new_dir_dentry), lower_new_dentry, in ecryptfs_rename()
640 fsstack_copy_attr_all(new_dir, d_inode(lower_new_dir_dentry)); in ecryptfs_rename()
642 fsstack_copy_attr_all(old_dir, d_inode(lower_old_dir_dentry)); in ecryptfs_rename()
665 rc = d_inode(lower_dentry)->i_op->readlink(lower_dentry, in ecryptfs_readlink_lower()
684 fsstack_copy_attr_atime(d_inode(dentry), in ecryptfs_follow_link()
685 d_inode(ecryptfs_dentry_to_lower(dentry))); in ecryptfs_follow_link()
741 struct inode *inode = d_inode(dentry); in truncate_upper()
754 crypt_stat = &ecryptfs_inode_to_private(d_inode(dentry))->crypt_stat; in truncate_upper()
861 rc = ecryptfs_inode_newsize_ok(d_inode(dentry), new_length); in ecryptfs_truncate()
869 mutex_lock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_truncate()
871 mutex_unlock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_truncate()
903 crypt_stat = &ecryptfs_inode_to_private(d_inode(dentry))->crypt_stat; in ecryptfs_setattr()
906 inode = d_inode(dentry); in ecryptfs_setattr()
970 mutex_lock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_setattr()
972 mutex_unlock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_setattr()
986 generic_fillattr(d_inode(dentry), stat); in ecryptfs_getattr_link()
1010 fsstack_copy_attr_all(d_inode(dentry), in ecryptfs_getattr()
1011 ecryptfs_inode_to_lower(d_inode(dentry))); in ecryptfs_getattr()
1012 generic_fillattr(d_inode(dentry), stat); in ecryptfs_getattr()
1026 if (!d_inode(lower_dentry)->i_op->setxattr) { in ecryptfs_setxattr()
1033 fsstack_copy_attr_all(d_inode(dentry), d_inode(lower_dentry)); in ecryptfs_setxattr()
1044 if (!d_inode(lower_dentry)->i_op->getxattr) { in ecryptfs_getxattr_lower()
1048 mutex_lock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_getxattr_lower()
1049 rc = d_inode(lower_dentry)->i_op->getxattr(lower_dentry, name, value, in ecryptfs_getxattr_lower()
1051 mutex_unlock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_getxattr_lower()
1071 if (!d_inode(lower_dentry)->i_op->listxattr) { in ecryptfs_listxattr()
1075 mutex_lock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_listxattr()
1076 rc = d_inode(lower_dentry)->i_op->listxattr(lower_dentry, list, size); in ecryptfs_listxattr()
1077 mutex_unlock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_listxattr()
1088 if (!d_inode(lower_dentry)->i_op->removexattr) { in ecryptfs_removexattr()
1092 mutex_lock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_removexattr()
1093 rc = d_inode(lower_dentry)->i_op->removexattr(lower_dentry, name); in ecryptfs_removexattr()
1094 mutex_unlock(&d_inode(lower_dentry)->i_mutex); in ecryptfs_removexattr()