int rc;
LASSERT(key);
- rc = snprintf(key, NAME_MAX + 1, ORPHAN_FILE_NAME_FORMAT_18, fid_seq(lf),
- fid_oid(lf));
+ rc = snprintf(key, NAME_MAX + 1, ORPHAN_FILE_NAME_FORMAT_18,
+ (unsigned long long)fid_seq(lf), fid_oid(lf));
if (rc > 0)
return (struct dt_key*) key;
else
/* In recovery phase, do not need for any lock here */
iops = &dor->do_index_ops->dio_it;
- it = iops->init(env, dor, BYPASS_CAPA);
- if (it != NULL) {
+ it = iops->init(env, dor, LUDA_64BITHASH, BYPASS_CAPA);
+ if (!IS_ERR(it)) {
result = iops->load(env, it, 0);
if (result > 0) {
/* main cycle */
iops->put(env, it);
iops->fini(env, it);
} else {
- CERROR("not enough memory for clean pending.\n");
- result = -ENOMEM;
+ result = PTR_ERR(it);
+ CERROR("Cannot clean pending (%d).\n", result);
}
RETURN(result);