• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ecryptfs/

Lines Matching refs:d_inode

44 	mutex_lock_nested(&(dir->d_inode->i_mutex), I_MUTEX_PARENT);
50 mutex_unlock(&dir->d_inode->i_mutex);
120 rc = ecryptfs_create_underlying_file(lower_dir_dentry->d_inode,
133 fsstack_copy_attr_times(directory_inode, lower_dir_dentry->d_inode);
134 fsstack_copy_inode_size(directory_inode, lower_dir_dentry->d_inode);
149 struct inode *ecryptfs_inode = ecryptfs_dentry->d_inode;
172 &ecryptfs_inode_to_private(ecryptfs_dentry->d_inode)->crypt_stat;
175 if (S_ISDIR(ecryptfs_dentry->d_inode->i_mode)) {
188 if (!ecryptfs_inode_to_private(ecryptfs_dentry->d_inode)->lower_file) {
261 lower_inode = lower_dentry->d_inode;
262 fsstack_copy_attr_atime(ecryptfs_dir_inode, lower_dir_dentry->d_inode);
276 if (!lower_dentry->d_inode) {
305 if (!ecryptfs_inode_to_private(ecryptfs_dentry->d_inode)->lower_file) {
316 ecryptfs_dentry->d_inode)->crypt_stat;
321 ecryptfs_dentry->d_inode);
337 + i_size_read(lower_dentry->d_inode));
339 file_size = i_size_read(lower_dentry->d_inode);
343 i_size_write(ecryptfs_dentry->d_inode, (loff_t)file_size);
371 lower_dir_inode = lower_dir_dentry->d_inode;
470 if (lower_dentry->d_inode)
526 file_size_save = i_size_read(old_dentry->d_inode);
532 rc = vfs_link(lower_old_dentry, lower_dir_dentry->d_inode,
534 if (rc || !lower_new_dentry->d_inode)
539 fsstack_copy_attr_times(dir, lower_dir_dentry->d_inode);
540 fsstack_copy_inode_size(dir, lower_dir_dentry->d_inode);
541 old_dentry->d_inode->i_nlink =
542 ecryptfs_inode_to_lower(old_dentry->d_inode)->i_nlink;
543 i_size_write(new_dentry->d_inode, file_size_save);
566 dentry->d_inode->i_nlink =
567 ecryptfs_inode_to_lower(dentry->d_inode)->i_nlink;
568 dentry->d_inode->i_ctime = dir->i_ctime;
598 rc = vfs_symlink(lower_dir_dentry->d_inode, lower_dentry,
601 if (rc || !lower_dentry->d_inode)
606 fsstack_copy_attr_times(dir, lower_dir_dentry->d_inode);
607 fsstack_copy_inode_size(dir, lower_dir_dentry->d_inode);
611 if (!dentry->d_inode)
624 rc = vfs_mkdir(lower_dir_dentry->d_inode, lower_dentry, mode);
625 if (rc || !lower_dentry->d_inode)
630 fsstack_copy_attr_times(dir, lower_dir_dentry->d_inode);
631 fsstack_copy_inode_size(dir, lower_dir_dentry->d_inode);
632 dir->i_nlink = lower_dir_dentry->d_inode->i_nlink;
635 if (!dentry->d_inode)
650 rc = vfs_rmdir(lower_dir_dentry->d_inode, lower_dentry);
654 fsstack_copy_attr_times(dir, lower_dir_dentry->d_inode);
655 dir->i_nlink = lower_dir_dentry->d_inode->i_nlink;
672 rc = vfs_mknod(lower_dir_dentry->d_inode, lower_dentry, mode, dev);
673 if (rc || !lower_dentry->d_inode)
678 fsstack_copy_attr_times(dir, lower_dir_dentry->d_inode);
679 fsstack_copy_inode_size(dir, lower_dir_dentry->d_inode);
682 if (!dentry->d_inode)
715 rc = vfs_rename(lower_old_dir_dentry->d_inode, lower_old_dentry,
716 lower_new_dir_dentry->d_inode, lower_new_dentry);
719 fsstack_copy_attr_all(new_dir, lower_new_dir_dentry->d_inode);
721 fsstack_copy_attr_all(old_dir, lower_old_dir_dentry->d_inode);
747 rc = lower_dentry->d_inode->i_op->readlink(lower_dentry,
774 fsstack_copy_attr_atime(dentry->d_inode,
775 ecryptfs_dentry_to_lower(dentry)->d_inode);
794 rc = dentry->d_inode->i_op->readlink(dentry, (char __user *)buf, len);
865 struct inode *inode = dentry->d_inode;
875 crypt_stat = &ecryptfs_inode_to_private(dentry->d_inode)->crypt_stat;
968 mutex_lock(&lower_dentry->d_inode->i_mutex);
970 mutex_unlock(&lower_dentry->d_inode->i_mutex);
1002 crypt_stat = &ecryptfs_inode_to_private(dentry->d_inode)->crypt_stat;
1005 inode = dentry->d_inode;
1009 if (S_ISDIR(dentry->d_inode->i_mode))
1011 else if (S_ISREG(dentry->d_inode->i_mode)
1052 mutex_lock(&lower_dentry->d_inode->i_mutex);
1054 mutex_unlock(&lower_dentry->d_inode->i_mutex);
1068 generic_fillattr(dentry->d_inode, stat);
1091 generic_fillattr(dentry->d_inode, stat);
1105 if (!lower_dentry->d_inode->i_op->setxattr) {
1121 if (!lower_dentry->d_inode->i_op->getxattr) {
1125 mutex_lock(&lower_dentry->d_inode->i_mutex);
1126 rc = lower_dentry->d_inode->i_op->getxattr(lower_dentry, name, value,
1128 mutex_unlock(&lower_dentry->d_inode->i_mutex);
1148 if (!lower_dentry->d_inode->i_op->listxattr) {
1152 mutex_lock(&lower_dentry->d_inode->i_mutex);
1153 rc = lower_dentry->d_inode->i_op->listxattr(lower_dentry, list, size);
1154 mutex_unlock(&lower_dentry->d_inode->i_mutex);
1165 if (!lower_dentry->d_inode->i_op->removexattr) {
1169 mutex_lock(&lower_dentry->d_inode->i_mutex);
1170 rc = lower_dentry->d_inode->i_op->removexattr(lower_dentry, name);
1171 mutex_unlock(&lower_dentry->d_inode->i_mutex);