Whamcloud - gitweb
LU-3105 mdc: remove capa support
[fs/lustre-release.git] / lustre / llite / xattr.c
index 3a079d2..35789c6 100644 (file)
@@ -110,7 +110,6 @@ int ll_setxattr_common(struct inode *inode, const char *name,
        struct ll_sb_info *sbi = ll_i2sbi(inode);
        struct ptlrpc_request *req = NULL;
         int xattr_type, rc;
-        struct obd_capa *oc;
         posix_acl_xattr_header *new_value = NULL;
         struct rmtacl_ctl_entry *rce = NULL;
         ext_acl_xattr_header *acl = NULL;
@@ -191,11 +190,9 @@ int ll_setxattr_common(struct inode *inode, const char *name,
                 valid |= rce_ops2valid(rce->rce_ops);
         }
 #endif
-       oc = ll_mdscapa_get(inode);
-       rc = md_setxattr(sbi->ll_md_exp, ll_inode2fid(inode), oc,
-                       valid, name, pv, size, 0, flags,
-                       ll_i2suppgid(inode), &req);
-       capa_put(oc);
+       rc = md_setxattr(sbi->ll_md_exp, ll_inode2fid(inode), valid, name, pv,
+                        size, 0, flags, ll_i2suppgid(inode), &req);
+
 #ifdef CONFIG_FS_POSIX_ACL
         if (new_value != NULL)
                 lustre_posix_acl_xattr_free(new_value, size);
@@ -295,7 +292,6 @@ int ll_getxattr_common(struct inode *inode, const char *name,
         struct mdt_body *body;
         int xattr_type, rc;
         void *xdata;
-        struct obd_capa *oc;
         struct rmtacl_ctl_entry *rce = NULL;
        struct ll_inode_info *lli = ll_i2info(inode);
         ENTRY;
@@ -386,11 +382,9 @@ do_getxattr:
                }
        } else {
 getxattr_nocache:
-               oc = ll_mdscapa_get(inode);
-               rc = md_getxattr(sbi->ll_md_exp, ll_inode2fid(inode), oc,
+               rc = md_getxattr(sbi->ll_md_exp, ll_inode2fid(inode),
                                valid | (rce ? rce_ops2valid(rce->rce_ops) : 0),
                                name, NULL, 0, size, 0, &req);
-               capa_put(oc);
 
                if (rc < 0)
                        GOTO(out_xattr, rc);