aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/llite/symlink.c
diff options
context:
space:
mode:
authorJames Simmons <jsimmons@infradead.org>2016-07-11 09:40:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-15 18:23:55 +0200
commit2c563880ea8fdc900693ae372fa07b3894f8ff63 (patch)
tree60ac0b6abf24fac9f33cc380f47b0633c098951b /drivers/staging/lustre/lustre/llite/symlink.c
parentstaging: lustre: lnet: Remove old commented out code (diff)
downloadlinux-dev-2c563880ea8fdc900693ae372fa07b3894f8ff63.tar.xz
linux-dev-2c563880ea8fdc900693ae372fa07b3894f8ff63.zip
staging: lustre: llite: basic port to xattr_handler API
Port the xattr functionality to the new xattr_handler API. This is smallest changes needed to move to this new API. The function ll_removexattr can be replaced by generic_removexattr as well since it also uses the xattr_handler set xattr backend. To tell the difference between the two cases we test the flag passed in for XATTR_REPLACE. The ll_getxattr function is replaced by the generic_getxattr function. Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/llite/symlink.c')
-rw-r--r--drivers/staging/lustre/lustre/llite/symlink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/lustre/lustre/llite/symlink.c b/drivers/staging/lustre/lustre/llite/symlink.c
index 8c8bdfe1ad71..4601be94dd22 100644
--- a/drivers/staging/lustre/lustre/llite/symlink.c
+++ b/drivers/staging/lustre/lustre/llite/symlink.c
@@ -155,8 +155,8 @@ const struct inode_operations ll_fast_symlink_inode_operations = {
.get_link = ll_get_link,
.getattr = ll_getattr,
.permission = ll_inode_permission,
- .setxattr = ll_setxattr,
- .getxattr = ll_getxattr,
+ .setxattr = generic_setxattr,
+ .getxattr = generic_getxattr,
.listxattr = ll_listxattr,
- .removexattr = ll_removexattr,
+ .removexattr = generic_removexattr,
};