[Linux-cachefs] [RFC PATCH 4/5] ceph: enhance dout messages in issue_read codepaths
Jeff Layton
jlayton at kernel.org
Thu Apr 7 12:02:23 UTC 2022
Signed-off-by: Jeff Layton <jlayton at kernel.org>
---
fs/ceph/addr.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index e7a7b5d29c7d..0726494a0981 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -190,6 +190,8 @@ static bool ceph_netfs_clamp_length(struct netfs_io_subrequest *subreq)
/* Truncate the extent at the end of the current block */
ceph_calc_file_object_mapping(&ci->i_layout, subreq->start, subreq->len,
&objno, &objoff, &xlen);
+ dout("%s: subreq->len=0x%zx xlen=0x%x rsize=0x%x",
+ __func__, subreq->len, xlen, fsc->mount_options->rsize);
subreq->len = min(xlen, fsc->mount_options->rsize);
return true;
}
@@ -302,7 +304,9 @@ static void ceph_netfs_issue_read(struct netfs_io_subrequest *subreq)
goto out;
}
- dout("%s: pos=%llu orig_len=%zu len=%llu\n", __func__, subreq->start, subreq->len, len);
+ dout("%s: pos=%llu orig_len=%zu len=%llu debug_id=%x debug_idx=%hx iter->count=%zx\n",
+ __func__, subreq->start, subreq->len, len, rreq->debug_id,
+ subreq->debug_index, iov_iter_count(&subreq->iter));
err = iov_iter_get_pages_alloc(&subreq->iter, &pages, len, &page_off);
if (err < 0) {
--
2.35.1
More information about the Linux-cachefs
mailing list