Whamcloud - gitweb
LU-6540 test: fix no %s specifier for the file
[fs/lustre-release.git] / lustre / llite / vvp_req.c
index 262fc4e..d070d9d 100644 (file)
@@ -55,10 +55,6 @@ static inline struct vvp_req *cl2vvp_req(const struct cl_req_slice *slice)
  *    - o_parent_oid
  *
  *    - o_parent_ver
- *
- *    - o_ioepoch,
- *
- *  and capability.
  */
 static void vvp_req_attr_set(const struct lu_env *env,
                             const struct cl_req_slice *slice,
@@ -67,25 +63,14 @@ static void vvp_req_attr_set(const struct lu_env *env,
 {
        struct inode    *inode;
        struct obdo     *oa;
-       u32              valid_flags;
+       u64              valid_flags = OBD_MD_FLTYPE;
 
        oa = attr->cra_oa;
        inode = vvp_object_inode(obj);
-       valid_flags = OBD_MD_FLTYPE;
-
-       if ((flags & OBD_MD_FLOSSCAPA) != 0) {
-               LASSERT(attr->cra_capa == NULL);
-               attr->cra_capa = cl_capa_lookup(inode,
-                                               slice->crs_req->crq_type);
-       }
 
        if (slice->crs_req->crq_type == CRT_WRITE) {
-               if (flags & OBD_MD_FLEPOCH) {
-                       oa->o_valid |= OBD_MD_FLEPOCH;
-                       oa->o_ioepoch = ll_i2info(inode)->lli_ioepoch;
-                       valid_flags |= OBD_MD_FLMTIME | OBD_MD_FLCTIME |
-                                      OBD_MD_FLUID | OBD_MD_FLGID;
-               }
+               valid_flags |= OBD_MD_FLMTIME | OBD_MD_FLCTIME |
+                              OBD_MD_FLUID | OBD_MD_FLGID;
        }
 
        obdo_from_inode(oa, inode, valid_flags & flags);