Lines Matching refs:lower_inode

53 static int ecryptfs_inode_test(struct inode *inode, void *lower_inode)  in ecryptfs_inode_test()  argument
55 return ecryptfs_inode_to_lower(inode) == lower_inode; in ecryptfs_inode_test()
60 struct inode *lower_inode = opaque; in ecryptfs_inode_set() local
62 ecryptfs_set_inode_lower(inode, lower_inode); in ecryptfs_inode_set()
63 fsstack_copy_attr_all(inode, lower_inode); in ecryptfs_inode_set()
65 fsstack_copy_inode_size(inode, lower_inode); in ecryptfs_inode_set()
66 inode->i_ino = lower_inode->i_ino; in ecryptfs_inode_set()
86 static struct inode *__ecryptfs_get_inode(struct inode *lower_inode, in __ecryptfs_get_inode() argument
91 if (lower_inode->i_sb != ecryptfs_superblock_to_lower(sb)) in __ecryptfs_get_inode()
93 if (!igrab(lower_inode)) in __ecryptfs_get_inode()
95 inode = iget5_locked(sb, (unsigned long)lower_inode, in __ecryptfs_get_inode()
97 lower_inode); in __ecryptfs_get_inode()
99 iput(lower_inode); in __ecryptfs_get_inode()
103 iput(lower_inode); in __ecryptfs_get_inode()
108 struct inode *ecryptfs_get_inode(struct inode *lower_inode, in ecryptfs_get_inode() argument
111 struct inode *inode = __ecryptfs_get_inode(lower_inode, sb); in ecryptfs_get_inode()
329 struct inode *inode, *lower_inode; in ecryptfs_lookup_interpose() local
353 lower_inode = READ_ONCE(lower_dentry->d_inode); in ecryptfs_lookup_interpose()
355 if (!lower_inode) { in ecryptfs_lookup_interpose()
360 inode = __ecryptfs_get_inode(lower_inode, dentry->d_sb); in ecryptfs_lookup_interpose()
882 struct inode *lower_inode; in ecryptfs_setattr() local
892 lower_inode = ecryptfs_inode_to_lower(inode); in ecryptfs_setattr()
959 fsstack_copy_attr_all(inode, lower_inode); in ecryptfs_setattr()
1027 ecryptfs_getxattr_lower(struct dentry *lower_dentry, struct inode *lower_inode, in ecryptfs_getxattr_lower() argument
1032 if (!(lower_inode->i_opflags & IOP_XATTR)) { in ecryptfs_getxattr_lower()
1036 inode_lock(lower_inode); in ecryptfs_getxattr_lower()
1037 rc = __vfs_getxattr(lower_dentry, lower_inode, name, value, size); in ecryptfs_getxattr_lower()
1038 inode_unlock(lower_inode); in ecryptfs_getxattr_lower()
1075 struct inode *lower_inode; in ecryptfs_removexattr() local
1078 lower_inode = ecryptfs_inode_to_lower(inode); in ecryptfs_removexattr()
1079 if (!(lower_inode->i_opflags & IOP_XATTR)) { in ecryptfs_removexattr()
1083 inode_lock(lower_inode); in ecryptfs_removexattr()
1085 inode_unlock(lower_inode); in ecryptfs_removexattr()