+#include "ceph_debug.h"
#include <linux/backing-dev.h>
#include <linux/fs.h>
#include <linux/pagevec.h>
#include <linux/task_io_accounting_ops.h>
-#include "ceph_debug.h"
#include "super.h"
-
#include "osd_client.h"
/*
* warning, in case we end up with accounting problems later.
*/
if (!PageDirty(page))
- pr_err("ceph %p invalidatepage %p page not dirty\n", inode,
- page);
+ pr_err("%p invalidatepage %p page not dirty\n", inode, page);
if (offset == 0)
ClearPageChecked(page);
client = ceph_inode_to_client(inode);
if (client->mount_state == CEPH_MOUNT_SHUTDOWN) {
- pr_warning("ceph writepage_start %p on forced umount\n", inode);
+ pr_warning("writepage_start %p on forced umount\n", inode);
return -EIO; /* we're in a forced umount, don't write! */
}
if (client->mount_args.wsize && client->mount_args.wsize < wsize)
+#include "ceph_debug.h"
+
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/vmalloc.h>
#include <linux/wait.h>
-#include "ceph_debug.h"
#include "super.h"
#include "decode.h"
#include "messenger.h"
out_alloc_count:
/* we didn't manage to reserve as much as we needed */
- pr_warning("ceph reserve caps ctx=%p ENOMEM need=%d got=%d\n",
+ pr_warning("reserve caps ctx=%p ENOMEM need=%d got=%d\n",
ctx, need, have);
return ret;
}
cap, capsnap);
__ceph_flush_snaps(ci, &session);
} else {
- pr_err("ceph %p auth cap %p not mds%d ???\n", inode,
+ pr_err("%p auth cap %p not mds%d ???\n", inode,
cap, session->s_mds);
spin_unlock(&inode->i_lock);
}
spin_unlock(&inode->i_lock);
}
} else {
- pr_err("ceph %p auth cap %p not mds%d ???\n", inode,
+ pr_err("%p auth cap %p not mds%d ???\n", inode,
cap, session->s_mds);
spin_unlock(&inode->i_lock);
}
#ifndef _FS_CEPH_DEBUG_H
#define _FS_CEPH_DEBUG_H
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#ifdef CONFIG_CEPH_FS_PRETTYDEBUG
/*
+#include "ceph_debug.h"
+
#include <linux/module.h>
#include <linux/ctype.h>
#include <linux/debugfs.h>
+#include "ceph_debug.h"
+
#include <linux/spinlock.h>
#include <linux/fs_struct.h>
#include <linux/namei.h>
#include <linux/sched.h>
-#include "ceph_debug.h"
#include "super.h"
/*
+#include "ceph_debug.h"
+
#include <linux/exportfs.h>
#include <asm/unaligned.h>
#include "super.h"
-#include "ceph_debug.h"
/*
* NFS export support
#endif
if (!dentry) {
- pr_err("ceph fh_to_dentry %llx -- inode %p but ENOMEM\n",
+ pr_err("fh_to_dentry %llx -- inode %p but ENOMEM\n",
fh->ino, inode);
iput(inode);
return ERR_PTR(-ENOMEM);
dentry = d_alloc_anon(inode);
#endif
if (!dentry) {
- pr_err("ceph cfh_to_dentry %llx -- inode %p but ENOMEM\n",
+ pr_err("cfh_to_dentry %llx -- inode %p but ENOMEM\n",
cfh->ino, inode);
iput(inode);
return ERR_PTR(-ENOMEM);
if (fh_type == 1)
return ERR_PTR(-ESTALE);
- pr_debug("ceph_fh_to_parent %llx/%d\n", cfh->parent_ino,
+ pr_debug("fh_to_parent %llx/%d\n", cfh->parent_ino,
cfh->parent_name_hash);
vino.ino = cfh->ino;
dentry = d_alloc_anon(inode);
#endif
if (!dentry) {
- pr_err("ceph fh_to_parent %llx -- inode %p but ENOMEM\n",
+ pr_err("fh_to_parent %llx -- inode %p but ENOMEM\n",
cfh->ino, inode);
iput(inode);
return ERR_PTR(-ENOMEM);
+#include "ceph_debug.h"
#include <linux/sched.h>
#include <linux/file.h>
#include <linux/namei.h>
#include <linux/writeback.h>
-#include "ceph_debug.h"
#include "super.h"
#include "mds_client.h"
+#include "ceph_debug.h"
+
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/smp_lock.h>
#include <linux/writeback.h>
#include <linux/vmalloc.h>
-#include "ceph_debug.h"
#include "super.h"
#include "decode.h"
frag = kmalloc(sizeof(*frag), GFP_NOFS);
if (!frag) {
- pr_err("ceph __get_or_create_frag ENOMEM on %p %llx.%llx "
+ pr_err("__get_or_create_frag ENOMEM on %p %llx.%llx "
"frag %x\n", &ci->vfs_inode,
ceph_vinop(&ci->vfs_inode), f);
return ERR_PTR(-ENOMEM);
if (IS_ERR(frag)) {
/* this is not the end of the world; we can continue
with bad/inaccurate delegation info */
- pr_err("ceph fill_dirfrag ENOMEM on mds ref %llx.%llx fg %x\n",
+ pr_err("fill_dirfrag ENOMEM on mds ref %llx.%llx fg %x\n",
ceph_vinop(inode), le32_to_cpu(dirinfo->frag));
err = -ENOMEM;
goto out;
if (iinfo->xattr_len > 4) {
xattr_blob = ceph_buffer_new_alloc(iinfo->xattr_len, GFP_NOFS);
if (!xattr_blob)
- pr_err("ceph fill_inode ENOMEM xattr blob %d bytes\n",
+ pr_err("fill_inode ENOMEM xattr blob %d bytes\n",
iinfo->xattr_len);
}
inode->i_size = ci->i_rbytes;
break;
default:
- pr_err("ceph fill_inode %llx.%llx BAD mode 0%o\n",
+ pr_err("fill_inode %llx.%llx BAD mode 0%o\n",
ceph_vinop(inode), inode->i_mode);
}
d_drop(dn);
realdn = d_materialise_unique(dn, in);
if (IS_ERR(realdn)) {
- pr_err("ceph splice_dentry error %p inode %p ino %llx.%llx\n",
+ pr_err("splice_dentry error %p inode %p ino %llx.%llx\n",
dn, in, ceph_vinop(in));
if (prehash)
*prehash = false; /* don't rehash on error */
* invariants.
*/
if (rinfo->head->op & CEPH_MDS_OP_WRITE) {
- pr_info("ceph fill_trace faking empty trace on %lld %s\n",
+ pr_info("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;
if (!dn->d_inode) {
in = ceph_get_inode(sb, vino);
if (IS_ERR(in)) {
- pr_err("ceph fill_trace bad get_inode "
+ pr_err("fill_trace bad get_inode "
"%llx.%llx\n", vino.ino, vino.snap);
err = PTR_ERR(in);
d_delete(dn);
vino.snap = le64_to_cpu(ininfo->snapid);
in = ceph_get_inode(sb, vino);
if (IS_ERR(in)) {
- pr_err("ceph fill_inode get_inode badness %llx.%llx\n",
+ pr_err("fill_inode get_inode badness %llx.%llx\n",
vino.ino, vino.snap);
err = PTR_ERR(in);
d_delete(dn);
req->r_fmode : -1,
&req->r_caps_reservation);
if (err < 0) {
- pr_err("ceph fill_inode badness %p %llx.%llx\n",
+ pr_err("fill_inode badness %p %llx.%llx\n",
in, ceph_vinop(in));
goto done;
}
if (fill_inode(in, &rinfo->dir_in[i], NULL, session,
req->r_request_started, -1,
&req->r_caps_reservation) < 0) {
- pr_err("ceph fill_inode badness on %p\n", in);
+ pr_err("fill_inode badness on %p\n", in);
dput(dn);
continue;
}
ci->i_xattrs.vals_size -= xattr->val_len;
}
if (!xattr) {
- pr_err("ceph __set_xattr ENOMEM on %p %llx.%llx xattr %s=%s\n",
+ pr_err("__set_xattr ENOMEM on %p %llx.%llx xattr %s=%s\n",
&ci->vfs_inode, ceph_vinop(&ci->vfs_inode), name,
xattr->val);
return -ENOMEM;
+#include "ceph_debug.h"
#include <linux/wait.h>
#include <linux/sched.h>
+
#include "mds_client.h"
#include "mon_client.h"
-
-#include "ceph_debug.h"
#include "super.h"
#include "messenger.h"
#include "decode.h"
bad:
err = -EIO;
out_bad:
- pr_err("ceph problem parsing mds trace %d\n", err);
+ pr_err("problem parsing mds trace %d\n", err);
return err;
}
bad:
err = -EIO;
out_bad:
- pr_err("ceph problem parsing dir contents %d\n", err);
+ pr_err("problem parsing dir contents %d\n", err);
return err;
}
bad:
err = -EIO;
out_bad:
- pr_err("ceph mds parse_reply err %d\n", err);
+ pr_err("mds parse_reply err %d\n", err);
return err;
}
msg = ceph_msg_new(CEPH_MSG_CLIENT_SESSION, sizeof(*h), 0, 0, NULL);
if (IS_ERR(msg)) {
- pr_err("ceph create_session_msg ENOMEM creating msg\n");
+ pr_err("create_session_msg ENOMEM creating msg\n");
return ERR_PTR(PTR_ERR(msg));
}
h = msg->front.iov_base;
spin_lock(&inode->i_lock);
if (cap->gen != session->s_cap_gen) {
- pr_err("ceph failed reconnect %p %llx.%llx cap %p "
+ pr_err("failed reconnect %p %llx.%llx cap %p "
"(gen %d < session %d)\n", inode, ceph_vinop(inode),
cap, cap->gen, session->s_cap_gen);
__ceph_remove_cap(cap, NULL);
if (time_after_eq(jiffies, session->s_cap_ttl) &&
time_after_eq(session->s_cap_ttl, session->s_renew_requested))
- pr_info("ceph mds%d caps stale\n", session->s_mds);
+ pr_info("mds%d caps stale\n", session->s_mds);
/* do not try to renew caps until a recovering mds has reconnected
* with its clients. */
if (was_stale) {
if (time_before(jiffies, session->s_cap_ttl)) {
- pr_info("ceph mds%d caps renewed\n", session->s_mds);
+ pr_info("mds%d caps renewed\n", session->s_mds);
wake = 1;
} else {
- pr_info("ceph mds%d caps still stale\n",
- session->s_mds);
+ pr_info("mds%d caps still stale\n", session->s_mds);
}
}
dout("renewed_caps mds%d ttl now %lu, was %s, now %s\n",
len += 1 + temp->d_name.len;
temp = temp->d_parent;
if (temp == NULL) {
- pr_err("ceph build_path_dentry corrupt dentry %p\n",
- dentry);
+ pr_err("build_path_dentry corrupt dentry %p\n", dentry);
return ERR_PTR(-EINVAL);
}
}
path[--pos] = '/';
temp = temp->d_parent;
if (temp == NULL) {
- pr_err("ceph build_path_dentry corrupt dentry\n");
+ pr_err("build_path_dentry corrupt dentry\n");
kfree(path);
return ERR_PTR(-EINVAL);
}
}
if (pos != 0) {
- pr_err("ceph build_path_dentry did not end path lookup where "
+ pr_err("build_path_dentry did not end path lookup where "
"expected, namelen is %d, pos is %d\n", len, pos);
/* presumably this is only possible if racing with a
rename of one of the parent directories (we can not
if (msg->hdr.src.name.type != CEPH_ENTITY_TYPE_MDS)
return;
if (msg->front.iov_len < sizeof(*head)) {
- pr_err("ceph_mdsc_handle_reply got corrupt (short) reply\n");
+ pr_err("mdsc_handle_reply got corrupt (short) reply\n");
return;
}
/* correct session? */
if (!req->r_session && req->r_session != session) {
- pr_err("ceph_mdsc_handle_reply got %llu on session mds%d"
+ pr_err("mdsc_handle_reply got %llu on session mds%d"
" not mds%d\n", tid, session->s_mds,
req->r_session ? req->r_session->s_mds : -1);
mutex_unlock(&mdsc->mutex);
/* dup? */
if ((req->r_got_unsafe && !head->safe) ||
(req->r_got_safe && head->safe)) {
- pr_warning("ceph got a dup %s reply on %llu from mds%d\n",
+ pr_warning("got a dup %s reply on %llu from mds%d\n",
head->safe ? "safe" : "unsafe", tid, mds);
mutex_unlock(&mdsc->mutex);
goto out;
mutex_lock(&session->s_mutex);
if (err < 0) {
- pr_err("ceph_mdsc_handle_reply got corrupt reply mds%d\n", mds);
+ pr_err("mdsc_handle_reply got corrupt reply mds%d\n", mds);
goto out_err;
}
return;
bad:
- pr_err("ceph_mdsc_handle_forward decode error err=%d\n", err);
+ pr_err("mdsc_handle_forward decode error err=%d\n", err);
}
/*
if (session->s_state == CEPH_MDS_SESSION_HUNG) {
session->s_state = CEPH_MDS_SESSION_OPEN;
- pr_info("ceph mds%d came back\n", session->s_mds);
+ pr_info("mds%d came back\n", session->s_mds);
}
switch (op) {
break;
case CEPH_SESSION_STALE:
- pr_info("ceph mds%d caps went stale, renewing\n",
+ pr_info("mds%d caps went stale, renewing\n",
session->s_mds);
spin_lock(&session->s_cap_lock);
session->s_cap_gen++;
break;
default:
- pr_err("ceph_mdsc_handle_session bad op %d mds%d\n", op, mds);
+ pr_err("mdsc_handle_session bad op %d mds%d\n", op, mds);
WARN_ON(1);
}
return;
bad:
- pr_err("ceph_mdsc_handle_session corrupt message mds%d len %d\n", mds,
+ pr_err("mdsc_handle_session corrupt message mds%d len %d\n", mds,
(int)msg->front.iov_len);
return;
}
__le32 *pnum_caps, *pnum_realms;
struct encode_caps_data iter_args;
- pr_info("ceph reconnect to recovering mds%d\n", mds);
+ pr_info("reconnect to recovering mds%d\n", mds);
/* find session */
session = __ceph_lookup_mds_session(mdsc, mds);
reply = ceph_msg_new(CEPH_MSG_CLIENT_RECONNECT, len, 0, 0, NULL);
if (IS_ERR(reply)) {
err = PTR_ERR(reply);
- pr_err("ceph send_mds_reconnect ENOMEM on %d for mds%d\n",
+ pr_err("send_mds_reconnect ENOMEM on %d for mds%d\n",
len, mds);
goto out;
}
session = __ceph_lookup_mds_session(mdsc, mds);
mutex_unlock(&mdsc->mutex);
if (!session) {
- pr_err("ceph handle_lease got lease but no session mds%d\n",
- mds);
+ pr_err("handle_lease got lease but no session mds%d\n", mds);
return;
}
return;
bad:
- pr_err("ceph corrupt lease message\n");
+ pr_err("corrupt lease message\n");
}
void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session,
if (s->s_ttl && time_after(jiffies, s->s_ttl)) {
if (s->s_state == CEPH_MDS_SESSION_OPEN) {
s->s_state = CEPH_MDS_SESSION_HUNG;
- pr_info("ceph mds%d hung\n", s->s_mds);
+ pr_info("mds%d hung\n", s->s_mds);
}
}
if (s->s_state < CEPH_MDS_SESSION_OPEN) {
ceph_decode_need(&p, end, sizeof(fsid)+2*sizeof(u32), bad);
ceph_decode_copy(&p, &fsid, sizeof(fsid));
if (ceph_fsid_compare(&fsid, &mdsc->client->monc.monmap->fsid)) {
- pr_err("ceph got mdsmap with wrong fsid\n");
+ pr_err("got mdsmap with wrong fsid\n");
return;
}
ceph_decode_32(&p, epoch);
bad_unlock:
mutex_unlock(&mdsc->mutex);
bad:
- pr_err("ceph error decoding mdsmap %d\n", err);
+ pr_err("error decoding mdsmap %d\n", err);
return;
}
{
struct ceph_mds_session *s = con->private;
- pr_err("ceph mds%d gave us the boot. IMPLEMENT RECONNECT.\n",
+ pr_err("mds%d gave us the boot. IMPLEMENT RECONNECT.\n",
s->s_mds);
}
break;
default:
- pr_err("ceph received unknown message type %d %s\n", type,
+ pr_err("received unknown message type %d %s\n", type,
ceph_msg_type_name(type));
}
ceph_msg_put(msg);
+#include "ceph_debug.h"
+
#include <linux/bug.h>
#include <linux/err.h>
#include <linux/random.h>
#include "messenger.h"
#include "decode.h"
-#include "ceph_debug.h"
#include "super.h"
badmem:
err = -ENOMEM;
bad:
- pr_err("ceph corrupt mdsmap\n");
+ pr_err("corrupt mdsmap\n");
ceph_mdsmap_destroy(m);
return ERR_PTR(-EINVAL);
}
+#include "ceph_debug.h"
+
#include <linux/crc32c.h>
#include <linux/kthread.h>
#include <linux/socket.h>
#include <linux/ctype.h>
#include <net/tcp.h>
-#include "ceph_debug.h"
#include "super.h"
#include "messenger.h"
ceph_msgr_wq = create_workqueue("ceph-msgr");
if (IS_ERR(ceph_msgr_wq)) {
int ret = PTR_ERR(ceph_msgr_wq);
- pr_err("ceph_msgr_init failed to create workqueue: %d\n", ret);
+ pr_err("msgr_init failed to create workqueue: %d\n", ret);
ceph_msgr_wq = NULL;
return ret;
}
ret = 0;
}
if (ret < 0) {
- pr_err("ceph connect %u.%u.%u.%u:%u error %d\n",
+ pr_err("connect %u.%u.%u.%u:%u error %d\n",
IPQUADPORT(*(struct sockaddr_in *)paddr), ret);
sock_release(sock);
con->sock = NULL;
static int verify_hello(struct ceph_connection *con)
{
if (memcmp(con->in_banner, CEPH_BANNER, strlen(CEPH_BANNER))) {
- pr_err("ceph connect to/from %u.%u.%u.%u:%u has bad banner\n",
+ pr_err("connect to/from %u.%u.%u.%u:%u has bad banner\n",
IPQUADPORT(con->peer_addr.ipaddr));
con->error_msg = "protocol error, bad banner";
return -1;
con->actual_peer_addr.ipaddr.sin_port ==
con->peer_addr.ipaddr.sin_port &&
con->actual_peer_addr.nonce == con->peer_addr.nonce)) {
- pr_err("ceph wrong peer, want %u.%u.%u.%u:%u/%d, "
+ pr_err("wrong peer, want %u.%u.%u.%u:%u/%d, "
"got %u.%u.%u.%u:%u/%d, wtf\n",
IPQUADPORT(con->peer_addr.ipaddr),
con->peer_addr.nonce,
dout("process_connect got BADPROTOVER my %d != their %d\n",
le32_to_cpu(con->out_connect.protocol_version),
le32_to_cpu(con->in_reply.protocol_version));
- pr_err("ceph %s%lld %u.%u.%u.%u:%u protocol version mismatch,"
+ pr_err("%s%lld %u.%u.%u.%u:%u protocol version mismatch,"
" my %d != server's %d\n",
ENTITY_NAME(con->peer_name),
IPQUADPORT(con->peer_addr.ipaddr),
*/
dout("process_connect got RESET peer seq %u\n",
le32_to_cpu(con->in_connect.connect_seq));
- pr_err("ceph %s%lld %u.%u.%u.%u:%u connection reset\n",
+ pr_err("%s%lld %u.%u.%u.%u:%u connection reset\n",
ENTITY_NAME(con->peer_name),
IPQUADPORT(con->peer_addr.ipaddr));
reset_connection(con);
pr_err("process_connect peer connecting WAIT\n");
default:
- pr_err("ceph connect protocol error, will retry\n");
+ pr_err("connect protocol error, will retry\n");
con->error_msg = "protocol error, garbage tag during connect";
return -1;
}
u32 crc = crc32c(0, (void *)&con->in_hdr,
sizeof(con->in_hdr) - sizeof(con->in_hdr.crc));
if (crc != le32_to_cpu(con->in_hdr.crc)) {
- pr_err("ceph read_partial_message bad hdr "
+ pr_err("read_partial_message bad hdr "
" crc %u != expected %u\n",
crc, con->in_hdr.crc);
return -EBADMSG;
/* crc ok? */
if (con->in_front_crc != le32_to_cpu(m->footer.front_crc)) {
- pr_err("ceph read_partial_message %p front crc %u != exp. %u\n",
+ pr_err("read_partial_message %p front crc %u != exp. %u\n",
m, con->in_front_crc, m->footer.front_crc);
return -EBADMSG;
}
if (con->in_middle_crc != le32_to_cpu(m->footer.middle_crc)) {
- pr_err("ceph read_partial_message %p middle crc %u != exp %u\n",
+ pr_err("read_partial_message %p middle crc %u != exp %u\n",
m, con->in_middle_crc, m->footer.middle_crc);
return -EBADMSG;
}
if (datacrc &&
(m->footer.flags & CEPH_MSG_FOOTER_NOCRC) == 0 &&
con->in_data_crc != le32_to_cpu(m->footer.data_crc)) {
- pr_err("ceph read_partial_message %p data crc %u != exp. %u\n",
- m,
+ pr_err("read_partial_message %p data crc %u != exp. %u\n", m,
con->in_data_crc, le32_to_cpu(m->footer.data_crc));
return -EBADMSG;
}
return ret;
bad_tag:
- pr_err("ceph try_read bad con->in_tag = %d\n", (int)con->in_tag);
+ pr_err("try_read bad con->in_tag = %d\n", (int)con->in_tag);
con->error_msg = "protocol error, garbage tag";
ret = -1;
goto out;
*/
static void ceph_fault(struct ceph_connection *con)
{
- pr_err("ceph %s%lld %u.%u.%u.%u:%u %s\n", ENTITY_NAME(con->peer_name),
+ pr_err("%s%lld %u.%u.%u.%u:%u %s\n", ENTITY_NAME(con->peer_name),
IPQUADPORT(con->peer_addr.ipaddr), con->error_msg);
dout("fault %p state %lu to peer %u.%u.%u.%u:%u\n",
con, con->state, IPQUADPORT(con->peer_addr.ipaddr));
m->front.iov_base = kmalloc(front_len, GFP_NOFS);
}
if (m->front.iov_base == NULL) {
- pr_err("ceph_msg_new can't allocate %d bytes\n",
+ pr_err("msg_new can't allocate %d bytes\n",
front_len);
goto out2;
}
out2:
ceph_msg_put(m);
out:
- pr_err("ceph_msg_new can't create type %d len %d\n", type, front_len);
+ pr_err("msg_new can't create type %d len %d\n", type, front_len);
return ERR_PTR(-ENOMEM);
}
struct ceph_msg *msg = ceph_msg_new(type, front_len, 0, 0, NULL);
if (!msg) {
- pr_err("ceph: unable to allocate msg type %d len %d\n",
+ pr_err("unable to allocate msg type %d len %d\n",
type, front_len);
return ERR_PTR(-ENOMEM);
}
+#include "ceph_debug.h"
#include <linux/types.h>
#include <linux/random.h>
#include <linux/sched.h>
-#include "mon_client.h"
-#include "ceph_debug.h"
+#include "mon_client.h"
#include "super.h"
#include "decode.h"
ceph_decode_32_safe(&p, end, seconds, bad);
mutex_lock(&monc->mutex);
if (monc->hunting) {
- pr_info("ceph mon%d %u.%u.%u.%u:%u session established\n",
+ pr_info("mon%d %u.%u.%u.%u:%u session established\n",
monc->cur_mon, IPQUADPORT(monc->con->peer_addr.ipaddr));
monc->hunting = false;
}
mutex_unlock(&monc->mutex);
return;
bad:
- pr_err("ceph got corrupt subscribe-ack msg\n");
+ pr_err("got corrupt subscribe-ack msg\n");
}
/*
ceph_decode_32_safe(&p, end, result, bad);
ceph_decode_32_safe(&p, end, len, bad);
if (result) {
- pr_err("ceph mount denied: %.*s (%d)\n", len, (char *)p,
+ pr_err("mount denied: %.*s (%d)\n", len, (char *)p,
result);
err = result;
goto out;
ceph_decode_need(&p, end, len, bad);
monmap = ceph_monmap_decode(p, p + len);
if (IS_ERR(monmap)) {
- pr_err("ceph problem decoding monmap, %d\n",
+ pr_err("problem decoding monmap, %d\n",
(int)PTR_ERR(monmap));
err = -EINVAL;
goto out;
client->whoami = cnum;
client->msgr->inst.name.type = CEPH_ENTITY_TYPE_CLIENT;
client->msgr->inst.name.num = cpu_to_le64(cnum);
- pr_info("ceph client%lld fsid " FSID_FORMAT "\n",
+ pr_info("client%lld fsid " FSID_FORMAT "\n",
client->whoami, PR_FSID(&client->monc.monmap->fsid));
ceph_debugfs_client_init(client);
goto out;
bad:
- pr_err("ceph error decoding mount_ack message\n");
+ pr_err("error decoding mount_ack message\n");
out:
client->mount_err = err;
mutex_unlock(&monc->mutex);
return;
bad:
- pr_err("ceph corrupt statfs reply, no tid\n");
+ pr_err("corrupt statfs reply, no tid\n");
}
/*
req.delay = BASE_DELAY_INTERVAL;
if (radix_tree_insert(&monc->statfs_request_tree, req.tid, &req) < 0) {
mutex_unlock(&monc->mutex);
- pr_err("ceph ENOMEM in do_statfs\n");
+ pr_err("ENOMEM in do_statfs\n");
return -ENOMEM;
}
monc->num_statfs_requests++;
break;
default:
- pr_err("ceph received unknown message type %d %s\n", type,
+ pr_err("received unknown message type %d %s\n", type,
ceph_msg_type_name(type));
}
ceph_msg_put(msg);
goto out;
if (monc->con && !monc->hunting)
- pr_info("ceph mon%d %u.%u.%u.%u:%u session lost, "
+ pr_info("mon%d %u.%u.%u.%u:%u session lost, "
"hunting for new mon\n", monc->cur_mon,
IPQUADPORT(monc->con->peer_addr.ipaddr));
+#include "ceph_debug.h"
#include <linux/err.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/vmalloc.h>
-#include "ceph_debug.h"
#include "msgpool.h"
/*
+#include "ceph_debug.h"
+
#include <linux/err.h>
#include <linux/highmem.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
-#include "ceph_debug.h"
#include "super.h"
#include "osd_client.h"
#include "messenger.h"
return;
bad:
- pr_err("ceph corrupt osd_op_reply got %d %d expected %d\n",
+ pr_err("corrupt osd_op_reply got %d %d expected %d\n",
(int)msg->front.iov_len, le32_to_cpu(msg->hdr.front_len),
(int)sizeof(*rhead));
}
ceph_decode_need(&p, end, sizeof(fsid), bad);
ceph_decode_copy(&p, &fsid, sizeof(fsid));
if (ceph_fsid_compare(&fsid, &osdc->client->monc.monmap->fsid)) {
- pr_err("ceph got osdmap with wrong fsid, ignoring\n");
+ pr_err("got osdmap with wrong fsid, ignoring\n");
return;
}
return;
bad:
- pr_err("ceph osdc handle_map corrupt msg\n");
+ pr_err("osdc handle_map corrupt msg\n");
up_write(&osdc->map_sem);
return;
}
break;
default:
- pr_err("ceph received unknown message type %d %s\n", type,
+ pr_err("received unknown message type %d %s\n", type,
ceph_msg_type_name(type));
}
ceph_msg_put(msg);
ceph_decode_need(p, end, 4*sizeof(u32), bad);
ceph_decode_32(p, magic);
if (magic != CRUSH_MAGIC) {
- pr_err("ceph crush_decode magic %x != current %x\n",
+ pr_err("crush_decode magic %x != current %x\n",
(unsigned)magic, (unsigned)CRUSH_MAGIC);
goto bad;
}
struct ceph_entity_addr addr;
ceph_decode_32_safe(p, end, osd, bad);
ceph_decode_copy_safe(p, end, &addr, sizeof(addr), bad);
- pr_info("ceph osd%d up\n", osd);
+ pr_info("osd%d up\n", osd);
BUG_ON(osd >= map->max_osd);
map->osd_state[osd] |= CEPH_OSD_UP;
map->osd_addr[osd] = addr;
ceph_decode_need(p, end, sizeof(u32)*2, bad);
ceph_decode_32(p, osd);
ceph_decode_32(p, off);
- pr_info("ceph osd%d weight 0x%x %s\n", osd, off,
+ pr_info("osd%d weight 0x%x %s\n", osd, off,
off == CEPH_OSD_IN ? "(in)" :
(off == CEPH_OSD_OUT ? "(out)" : ""));
if (osd < map->max_osd)
return map;
bad:
- pr_err("ceph corrupt inc osdmap epoch %d off %d (%p of %p-%p)\n",
+ pr_err("corrupt inc osdmap epoch %d off %d (%p of %p-%p)\n",
epoch, (int)(*p - start), *p, start, end);
if (newcrush)
crush_destroy(newcrush);
ruleno = crush_find_rule(osdmap->crush, pool->v.crush_ruleset,
pool->v.type, pool->v.size);
if (ruleno < 0) {
- pr_err("ceph no crush rule pool %d type %d size %d\n",
+ pr_err("no crush rule pool %d type %d size %d\n",
pgid.pg.pool, pool->v.type, pool->v.size);
return NULL;
}
+#include "ceph_debug.h"
#include <linux/radix-tree.h>
#include <linux/sort.h>
-#include "ceph_debug.h"
#include "super.h"
#include "decode.h"
ceph_put_snap_context(realm->cached_context);
realm->cached_context = NULL;
}
- pr_err("ceph build_snap_context %llx %p fail %d\n", realm->ino,
+ pr_err("build_snap_context %llx %p fail %d\n", realm->ino,
realm, err);
return err;
}
capsnap = kzalloc(sizeof(*capsnap), GFP_NOFS);
if (!capsnap) {
- pr_err("ceph ENOMEM allocating ceph_cap_snap on %p\n", inode);
+ pr_err("ENOMEM allocating ceph_cap_snap on %p\n", inode);
return;
}
bad:
err = -EINVAL;
fail:
- pr_err("ceph update_snap_trace error %d\n", err);
+ pr_err("update_snap_trace error %d\n", err);
return err;
}
return;
bad:
- pr_err("ceph corrupt snap message from mds%d\n", mds);
+ pr_err("corrupt snap message from mds%d\n", mds);
out:
if (locked_rwsem)
up_write(&mdsc->snap_rwsem);
+
+#include "ceph_debug.h"
+
#include <linux/backing-dev.h>
#include <linux/fs.h>
#include <linux/inet.h>
#include <linux/version.h>
#include <linux/vmalloc.h>
-#include "ceph_debug.h"
#include "ceph_ver.h"
#include "decode.h"
#include "super.h"
return 0;
bad:
- pr_err("ceph parse_ips bad ip '%s'\n", c);
+ pr_err("parse_ips bad ip '%s'\n", c);
return -EINVAL;
}
return -EINVAL;
*path = strstr(dev_name, ":/");
if (*path == NULL) {
- pr_err("ceph device name is missing path (no :/ in %s)\n",
+ pr_err("device name is missing path (no :/ in %s)\n",
dev_name);
return -EINVAL;
}
continue;
token = match_token((char *)c, arg_tokens, argstr);
if (token < 0) {
- pr_err("ceph bad mount option at '%s'\n", c);
+ pr_err("bad mount option at '%s'\n", c);
return -EINVAL;
}
if (token < Opt_ip) {
ret = match_int(&argstr[0], &intval);
if (ret < 0) {
- pr_err("ceph bad mount option arg (not int) "
+ pr_err("bad mount option arg (not int) "
"at '%s'\n", c);
continue;
}
{
int ret = 0;
- pr_info("ceph init (%s)\n", STRINGIFY(CEPH_GIT_VER));
+ pr_info("init (%s)\n", STRINGIFY(CEPH_GIT_VER));
ret = ceph_debugfs_init();
if (ret < 0)
#ifndef _FS_CEPH_SUPER_H
#define _FS_CEPH_SUPER_H
+#include "ceph_debug.h"
+
#include <asm/unaligned.h>
#include <linux/backing-dev.h>
#include <linux/completion.h>
#include <linux/wait.h>
#include "types.h"
-#include "ceph_debug.h"
#include "messenger.h"
#include "msgpool.h"
#include "mon_client.h"