#include <obd.h>
#include <obd_support.h>
#include <lustre_fid.h>
-#include <lustre_lite.h>
#include <lustre_dlm.h>
#include <lustre_ver.h>
#include <lustre_mdc.h>
}
int ccc_object_init0(const struct lu_env *env,
- struct ccc_object *vob,
- const struct cl_object_conf *conf)
+ struct ccc_object *vob,
+ const struct cl_object_conf *conf)
{
- vob->cob_inode = conf->coc_inode;
- vob->cob_transient_pages = 0;
+ vob->cob_inode = conf->coc_inode;
+ atomic_set(&vob->cob_transient_pages, 0);
cl_object_page_init(&vob->cob_cl, sizeof(struct ccc_page));
- return 0;
+ return 0;
}
int ccc_object_init(const struct lu_env *env, struct lu_object *obj,
const struct cl_object_conf *cconf;
cconf = lu2cl_conf(conf);
- CFS_INIT_LIST_HEAD(&vob->cob_pending_list);
+ INIT_LIST_HEAD(&vob->cob_pending_list);
lu_object_add(obj, below);
result = ccc_object_init0(env, vob, cconf);
} else
if (OBD_FAIL_CHECK(OBD_FAIL_LFSCK_INVALID_PFID))
oa->o_parent_oid++;
memcpy(attr->cra_jobid, cl_i2info(inode)->lli_jobid,
- JOBSTATS_JOBID_SIZE);
+ LUSTRE_JOBID_SIZE);
}
static const struct cl_req_operations ccc_req_ops = {