if (rc == -ERESTART) {
/* directory got splitted. time to update local object and
* repeat the request with proper MDS */
- LASSERT(fid_equals(pid, &rpid));
+ LASSERT(lu_fid_eq(pid, &rpid));
rc = lmv_get_mea_and_update_object(exp, &rpid);
if (rc == 0) {
ptlrpc_req_finished(*reqp);
if (obj) {
/* in fact, we need not this with current intent_lock(),
* but it may change some day */
- if (!fid_equals(pid, cid)){
+ if (!lu_fid_eq(pid, cid)){
rpid = obj->objs[mds].lo_fid;
mds = lmv_fld_lookup(obd, &rpid);
}
struct lookup_intent it;
int mds;
- if (fid_equals(&fid, &obj->lo_fid))
+ if (lu_fid_eq(&fid, &obj->lo_fid))
/* skip master obj */
continue;
if (!it.d.fs_data)
GOTO(cleanup, rc = -ENOMEM);
- if (fid_equals(&fid, &obj->lo_fid)) {
+ if (lu_fid_eq(&fid, &obj->lo_fid)) {
if (master_valid) {
/* lmv_intent_getattr() already checked
* validness and took the lock */
}
/* skip master obj. */
- if (fid_equals(&obj->lo_fid, &obj->objs[i].lo_fid))
+ if (lu_fid_eq(&obj->lo_fid, &obj->objs[i].lo_fid))
continue;
body->size += obj->objs[i].size;
data, iattr, ea, ealen, ea2, ea2len,
ea3, ea3len, &req);
- if (fid_equals(&obj->lo_fid, &obj->objs[i].lo_fid)) {
+ if (lu_fid_eq(&obj->lo_fid, &obj->objs[i].lo_fid)) {
/*
* this is master object and this request should
* be returned back to llite.
rc = md_readpage(lmv->tgts[i].ltd_exp, &rid,
offset, page, request);
- if (rc == 0 && !fid_equals(&rid, fid))
+ if (rc == 0 && !lu_fid_eq(&rid, fid))
/* this page isn't from master object. To avoid "." and ".."
* duplication in directory, we have to remove them from all
* slave objects */