From 161063c8d65d0758055e04d99172cbe3c3feab0f Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 20 Sep 2016 14:22:50 -0700 Subject: [PATCH] scoutfs: remove very noisy bh ref tracing This wasn't adding much value and was exceptionally noisy. Signed-off-by: Zach Brown --- kmod/src/block.c | 5 ----- kmod/src/block.h | 5 +---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/kmod/src/block.c b/kmod/src/block.c index faf9ae33..7c049a9a 100644 --- a/kmod/src/block.c +++ b/kmod/src/block.c @@ -207,8 +207,6 @@ struct buffer_head *scoutfs_block_read(struct super_block *sb, u64 blkno) } out: - trace_printk("blkno %llu bh %p (ret %ld)\n", - blkno, bh, IS_ERR(bh) ? PTR_ERR(bh) : 0); return bh; } @@ -447,9 +445,6 @@ struct buffer_head *scoutfs_block_dirty(struct super_block *sb, u64 blkno) set_buffer_uptodate(bh); set_buffer_scoutfs_verified(bh); out: - trace_printk("blkno %llu bh %p (ret %ld)\n", - blkno, bh, IS_ERR(bh) ? PTR_ERR(bh) : 0); - return bh; } diff --git a/kmod/src/block.h b/kmod/src/block.h index ee38b677..d431d90e 100644 --- a/kmod/src/block.h +++ b/kmod/src/block.h @@ -27,11 +27,8 @@ static inline void *bh_data(struct buffer_head *bh) static inline void scoutfs_block_put(struct buffer_head *bh) { - if (!IS_ERR_OR_NULL(bh)) { - trace_printk("putting bh %p count %d\n", - bh, atomic_read(&bh->b_count)); + if (!IS_ERR_OR_NULL(bh)) brelse(bh); - } } #endif