* - 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,
{
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);