exp_nid_stats */
};
-#define nidstat_getref(nidstat) \
-do { \
- atomic_inc(&(nidstat)->nid_exp_ref_count); \
-} while(0)
-
-#define nidstat_putref(nidstat) \
-do { \
- atomic_dec(&(nidstat)->nid_exp_ref_count); \
- LASSERTF(atomic_read(&(nidstat)->nid_exp_ref_count) >= 0, \
- "stat %p nid_exp_ref_count < 0\n", nidstat); \
+#define nidstat_getref(nidstat) \
+ atomic_inc(&(nidstat)->nid_exp_ref_count)
+
+#define nidstat_putref(nidstat) \
+do { \
+ atomic_dec(&(nidstat)->nid_exp_ref_count); \
+ LASSERTF(atomic_read(&(nidstat)->nid_exp_ref_count) >= 0, \
+ "stat %px nid_exp_ref_count < 0\n", nidstat); \
} while(0)
enum obd_option {
retry:
buf = req_capsule_server_get(pill, &RMF_DLM_LVB);
- LASSERTF(buf != NULL, "req %p, lock %p\n", req, lock);
+ LASSERTF(buf != NULL, "req %px, lock %px\n", req, lock);
buflen = req_capsule_get_size(pill, &RMF_DLM_LVB,
RCL_SERVER);
/*
/* we use l_pending_chain here, because it's unused on clients. */
LASSERTF(list_empty(&lock->l_pending_chain),
- "lock %p next %p prev %p\n",
+ "lock %px next %px prev %px\n",
lock, &lock->l_pending_chain.next,
&lock->l_pending_chain.prev);
/*
GOTO(out_och_free, rc);
LASSERTF(it_disposition(it, DISP_ENQ_OPEN_REF),
- "inode %p: disposition %x, status %d\n", inode,
+ "inode %px: disposition %x, status %d\n", inode,
it_disposition(it, ~0), it->it_status);
rc = ll_local_open(file, it, fd, *och_p);
/* FID shouldn't be changed! */
if (fid_is_sane(&lli->lli_fid)) {
LASSERTF(lu_fid_eq(&lli->lli_fid, &body->mbo_fid1),
- "Trying to change FID "DFID
- " to the "DFID", inode "DFID"(%p)\n",
+ "Trying to change FID "DFID" to the "DFID", inode "DFID"(%px)\n",
PFID(&lli->lli_fid), PFID(&body->mbo_fid1),
PFID(ll_inode2fid(inode)), inode);
} else {
unsigned long flags;
LASSERTF((inode->i_state & I_FREEING) || inode_is_locked(inode),
- DFID ":inode %p state %#lx, lli_flags %#lx\n",
+ DFID ":inode %px state %#lx, lli_flags %#lx\n",
PFID(ll_inode2fid(inode)), inode, inode->i_state,
ll_i2info(inode)->lli_flags);
LASSERTF(!PageUptodate(page) &&
!PageDirty(page) &&
!PagePrivate(page),
- "%p", page);
+ "%px", page);
}
rcu_read_unlock();
#endif
page_idx, ra.cra_end_idx,
ra.cra_rpc_pages);
LASSERTF(ra.cra_end_idx >= page_idx,
- "object: %p, indcies %lu / %lu\n",
+ "object: %px, indcies %lu / %lu\n",
io->ci_obj, ra.cra_end_idx, page_idx);
/* update read ahead RPC size.
* NB: it's racy but doesn't matter */
BUILD_BUG_ON(PAGEVEC_SIZE > BITS_PER_LONG);
LASSERTF(page->mapping,
- "mapping must be set. page %p, page->private (cl_page) %p\n",
+ "mapping must be set. page %px, page->private (cl_page) %px\n",
page, (void *) page->private);
/*
continue;
LASSERTF(page->mapping == mapping,
- "all pages must have the same mapping. page %p, mapping %p, first mapping %p\n",
+ "all pages must have the same mapping. page %px, mapping %px, first mapping %px\n",
page, page->mapping, mapping);
WARN_ON_ONCE(!PagePrivate(page) && !PageUptodate(page));
ll_account_page_dirtied(page, mapping);
/* @hash should be the last dirent hash */
LASSERTF(hash <= end,
- "ctxt@%p stripe@%p hash %llx end %llx\n",
+ "ctxt@%px stripe@%px hash %llx end %llx\n",
ctxt, stripe, hash, end);
/* unload last page */
stripe_dirent_unload(stripe);
lu_site_print(env, lu->ld_site, &lu->ld_ref, D_ERROR,
lu_cdebug_printer);
}
- LASSERTF(atomic_read(&lu->ld_ref) == 0, "lu is %p\n", lu);
+ LASSERTF(atomic_read(&lu->ld_ref) == 0, "lu is %px\n", lu);
dt_device_fini(&lod->lod_dt_dev);
OBD_FREE_PTR(lod);
RETURN(next);
* be valid. */
lock = ldlm_handle2lock(lockh);
LASSERTF(lock != NULL,
- "lockh %#llx, req %p, aa %p - client evicted?\n",
+ "lockh %#llx, req %px, aa %px - client evicted?\n",
lockh->cookie, req, aa);
/* Take an additional reference so that a blocking AST that
ENTRY;
LASSERTF(ergo(oscl->ols_glimpse, lock->cll_descr.cld_mode <= CLM_READ),
- "lock = %p, ols = %p\n", lock, oscl);
+ "lock = %px, ols = %px\n", lock, oscl);
if (oscl->ols_state == OLS_GRANTED)
RETURN(0);
struct inode *old_inode = lock->l_resource->lr_lvb_inode;
LASSERTF(old_inode->i_state & I_FREEING,
- "Found existing inode %p/%lu/%u state %lu in lock: setting data to %p/%lu/%u\n",
+ "Found existing inode %px/%lu/%u state %lu in lock: setting data to %px/%lu/%u\n",
old_inode, old_inode->i_ino, old_inode->i_generation,
old_inode->i_state,
new_inode, new_inode->i_ino, new_inode->i_generation);
if (likely(mod != NULL)) {
LASSERTF(mod->mod_open_req != NULL &&
mod->mod_open_req->rq_type != LI_POISON,
- "POISONED open %p!\n", mod->mod_open_req);
+ "POISONED open %px!\n", mod->mod_open_req);
mod->mod_close_req = req;
LASSERTF(mdt->mdt_md_root == md_root,
"Different root object ("
- DFID") instances, %p, %p\n",
+ DFID") instances, %px, %px\n",
PFID(&info->mti_tmp_fid1),
mdt->mdt_md_root, md_root);
LASSERT(atomic_read(