* warning, in case we end up with accounting problems later.
*/
if (!PageDirty(page))
- dout(0, "%p invalidatepage %p page not dirty\n", inode, page);
+ pr_err("ceph %p invalidatepage %p page not dirty\n", inode,
+ page);
if (offset == 0)
ClearPageChecked(page);
out_alloc_count:
/* we didn't manage to reserve as much as we needed */
- dout(0, "reserve caps ctx=%p ENOMEM need=%d got=%d\n",
- ctx, need, have);
+ pr_warning("ceph reserve caps ctx=%p ENOMEM need=%d got=%d\n",
+ ctx, need, have);
return ret;
}
cap->issued | cap->implemented,
ci->i_flushing_caps);
} else {
- dout(0, " %p auth cap %p not mds%d ???\n", inode, cap,
- session->s_mds);
+ pr_err("ceph %p auth cap %p not mds%d ???\n", inode,
+ cap, session->s_mds);
spin_unlock(&inode->i_lock);
}
}
* invariants.
*/
if (rinfo->head->op & CEPH_MDS_OP_WRITE) {
- dout(0, "fill_trace faking empty trace on %lld %s\n",
- req->r_tid, ceph_mds_op_name(rinfo->head->op));
+ pr_info("ceph fill_trace faking empty trace on %lld %s\n",
+ req->r_tid, ceph_mds_op_name(rinfo->head->op));
if (rinfo->head->is_dentry) {
rinfo->head->is_dentry = 0;
err = fill_inode(req->r_locked_dir,
if (fill_inode(in, &rinfo->dir_in[i], NULL, session,
req->r_request_started, -1,
&req->r_caps_reservation) < 0) {
- dout(0, "fill_inode badness on %p\n", in);
+ pr_err("ceph fill_inode badness on %p\n", in);
dput(dn);
continue;
}
spin_lock(&inode->i_lock);
if (cap->gen != session->s_cap_gen) {
- dout(0, "failed to reconnect %p cap %p (gen %d < session %d)\n",
- inode, cap, cap->gen, session->s_cap_gen);
+ pr_err("ceph failed reconnect %p cap %p (gen %d < sess %d)\n",
+ inode, cap, cap->gen, session->s_cap_gen);
__ceph_remove_cap(cap, NULL);
}
wake_up(&ceph_inode(inode)->i_cap_wq);
/* dup? */
if ((req->r_got_unsafe && !head->safe) ||
(req->r_got_safe && head->safe)) {
- dout(0, "got a dup %s reply on %llu from mds%d\n",
- head->safe ? "safe" : "unsafe", tid, mds);
+ pr_warning("ceph got a dup %s reply on %llu from mds%d\n",
+ head->safe ? "safe" : "unsafe", tid, mds);
mutex_unlock(&mdsc->mutex);
goto out;
}
return;
bad:
- dout(0, "corrupt lease message\n");
+ pr_err("ceph corrupt lease message\n");
}
void ceph_mdsc_lease_send_msg(struct ceph_mds_client *mdsc, int mds,
pr_err("ceph failed to getsockname: %d\n", ret);
goto err;
}
- dout(0, "listening on %u.%u.%u.%u:%u\n", IPQUADPORT(*myaddr));
+ pr_info("ceph listening on %u.%u.%u.%u:%u\n", IPQUADPORT(*myaddr));
/* we don't care too much if this works or not */
sock->ops->listen(sock, CEPH_MSGR_BACKUP);
unsigned long key;
void **slot, *val;
- dout(0, "__remove_connection: %p\n", con);
dout(20, "__remove_connection %p\n", con);
if (list_empty(&con->list_all)) {
dout(20, "__remove_connection %p not registered\n", con);
unsigned long key = hash_addr(&new->peer_addr);
void **slot;
- dout(0, "replace_connection %p with %p\n", old, new);
dout(10, "replace_connection %p with %p\n", old, new);
/* replace in con_tree */
{
struct ceph_msg *msg;
- dout(0, "abort_request tid %llu, revoking %p pages\n", req->r_tid,
+ dout(10, "abort_request tid %llu, revoking %p pages\n", req->r_tid,
req->r_request);
/*
* mark req aborted _before_ revoking pages, so that
ceph_decode_32_safe(&p, end, result, bad);
ceph_decode_32_safe(&p, end, len, bad);
if (result) {
- dout(0, "mount denied: %.*s (%d)\n", len, (char *)p, result);
+ pr_err("ceph mount denied: %.*s (%d)\n", len, (char *)p,
+ result);
return result;
}
p += len;
if (token < Opt_ip) {
ret = match_int(&argstr[0], &intval);
if (ret < 0) {
- dout(0, "bad mount arg, not int\n");
+ pr_err("ceph bad mount option arg (not int) "
+ "at '%s'\n", c);
continue;
}
dout(30, "got token %d intval %d\n", token, intval);
int ret = 0;
dout(1, "init_ceph\n");
- dout(0, "ceph (%s)\n", STRINGIFY(CEPH_GIT_VER));
+ pr_info("ceph init (%s)\n", STRINGIFY(CEPH_GIT_VER));
ret = ceph_debugfs_init();
if (ret < 0)