From 43e9d2caa2433d841112799e7e3ab01fce617876 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 6 Jun 2017 15:31:47 -0700 Subject: [PATCH] scoutfs: trace compaction manifest entries Trace the manifest entries compaction received from the server. Signed-off-by: Zach Brown --- kmod/src/compact.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kmod/src/compact.c b/kmod/src/compact.c index f27fb1c5..f02234e0 100644 --- a/kmod/src/compact.c +++ b/kmod/src/compact.c @@ -633,6 +633,13 @@ static void scoutfs_compact_func(struct work_struct *work) if (ret == 0 && list_empty(&curs.csegs)) return; + /* trace compaction ranges */ + list_for_each_entry(cseg, &curs.csegs, entry) { + SK_TRACE_PRINTK("level %u segno %llu first "SK_FMT" last "SK_FMT"\n", + cseg->level, cseg->segno, SK_ARG(cseg->first), + SK_ARG(cseg->last)); + } + if (ret == 0 && !list_empty(&curs.csegs)) { ret = compact_segments(sb, &curs, &comp, &results);