__u32 opcode = ll_rpc_opcode_table[i].opcode;
lprocfs_counter_init(svc_stats, PTLRPC_LAST_CNTR + i,
svc_counter_config, ll_opcode2str(opcode),
- (i == OST_WRITE || i == OST_READ) ?
- "bytes" : "usec");
+ "usec");
}
rc = lprocfs_register_stats(svc_procroot, name, svc_stats);
LPROCFS_EXIT();
sscanf(buffer, "%40s", tmpbuf);
- obd_export_evict_by_uuid(obd, tmpbuf);
+ if (strncmp(tmpbuf, "nid:", 4) == 0)
+ obd_export_evict_by_nid(obd, tmpbuf + 4);
+ else if (strncmp(tmpbuf, "uuid:", 5) == 0)
+ obd_export_evict_by_uuid(obd, tmpbuf + 5);
+ else
+ obd_export_evict_by_uuid(obd, tmpbuf);
LPROCFS_ENTRY();
class_decref(obd);