Whamcloud - gitweb
LU-9183 llite: handle xattr with the xattr_handler infrastructure
[fs/lustre-release.git] / lustre / llite / namei.c
index ef60461..a2f2dee 100644 (file)
@@ -1495,10 +1495,12 @@ const struct inode_operations ll_dir_inode_operations = {
        .setattr            = ll_setattr,
        .getattr            = ll_getattr,
        .permission         = ll_inode_permission,
+#ifdef HAVE_IOP_XATTR
        .setxattr           = ll_setxattr,
        .getxattr           = ll_getxattr,
-       .listxattr          = ll_listxattr,
        .removexattr        = ll_removexattr,
+#endif
+       .listxattr          = ll_listxattr,
 #ifdef HAVE_IOP_GET_ACL
        .get_acl            = ll_get_acl,
 #endif
@@ -1508,11 +1510,13 @@ const struct inode_operations ll_special_inode_operations = {
        .setattr        = ll_setattr,
        .getattr        = ll_getattr,
        .permission     = ll_inode_permission,
-       .setxattr       = ll_setxattr,
-       .getxattr       = ll_getxattr,
-       .listxattr      = ll_listxattr,
+#ifdef HAVE_IOP_XATTR
+       .setxattr       = ll_setxattr,
+       .getxattr       = ll_getxattr,
        .removexattr    = ll_removexattr,
+#endif
+       .listxattr      = ll_listxattr,
 #ifdef HAVE_IOP_GET_ACL
-       .get_acl            = ll_get_acl,
+       .get_acl        = ll_get_acl,
 #endif
 };