aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-04-11 00:48:00 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-04-11 00:48:00 -0400
commitce23e640133484eebc20ca7b7668388213e11327 (patch)
tree0b37de221fe6790396c3ae636bc56e5aacbcaf46 /fs/ecryptfs/inode.c
parentb296821a7c42fa58baa17513b2b7b30ae66f3336 (diff)
->getxattr(): pass dentry and inode as separate arguments
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ecryptfs/inode.c')
-rw-r--r--fs/ecryptfs/inode.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
index 121114e9a464..1ac631cd9d84 100644
--- a/fs/ecryptfs/inode.c
+++ b/fs/ecryptfs/inode.c
@@ -1033,29 +1033,30 @@ out:
1033} 1033}
1034 1034
1035ssize_t 1035ssize_t
1036ecryptfs_getxattr_lower(struct dentry *lower_dentry, const char *name, 1036ecryptfs_getxattr_lower(struct dentry *lower_dentry, struct inode *lower_inode,
1037 void *value, size_t size) 1037 const char *name, void *value, size_t size)
1038{ 1038{
1039 int rc = 0; 1039 int rc = 0;
1040 1040
1041 if (!d_inode(lower_dentry)->i_op->getxattr) { 1041 if (!lower_inode->i_op->getxattr) {
1042 rc = -EOPNOTSUPP; 1042 rc = -EOPNOTSUPP;
1043 goto out; 1043 goto out;
1044 } 1044 }
1045 inode_lock(d_inode(lower_dentry)); 1045 inode_lock(lower_inode);
1046 rc = d_inode(lower_dentry)->i_op->getxattr(lower_dentry, name, value, 1046 rc = lower_inode->i_op->getxattr(lower_dentry, lower_inode,
1047 size); 1047 name, value, size);
1048 inode_unlock(d_inode(lower_dentry)); 1048 inode_unlock(lower_inode);
1049out: 1049out:
1050 return rc; 1050 return rc;
1051} 1051}
1052 1052
1053static ssize_t 1053static ssize_t
1054ecryptfs_getxattr(struct dentry *dentry, const char *name, void *value, 1054ecryptfs_getxattr(struct dentry *dentry, struct inode *inode,
1055 size_t size) 1055 const char *name, void *value, size_t size)
1056{ 1056{
1057 return ecryptfs_getxattr_lower(ecryptfs_dentry_to_lower(dentry), name, 1057 return ecryptfs_getxattr_lower(ecryptfs_dentry_to_lower(dentry),
1058 value, size); 1058 ecryptfs_inode_to_lower(inode),
1059 name, value, size);
1059} 1060}
1060 1061
1061static ssize_t 1062static ssize_t