From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Darrick J. Wong" Subject: [PATCH 15/25] e2fsck: print cluster ranges when encountering bitmap errors Date: Thu, 17 Oct 2013 21:50:35 -0700 Message-ID: <20131018045035.7339.86831.stgit@birch.djwong.org> References: <20131018044854.7339.48457.stgit@birch.djwong.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: linux-ext4@vger.kernel.org To: tytso@mit.edu, darrick.wong@oracle.com Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:30706 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750930Ab3JREuk (ORCPT ); Fri, 18 Oct 2013 00:50:40 -0400 In-Reply-To: <20131018044854.7339.48457.stgit@birch.djwong.org> Sender: linux-ext4-owner@vger.kernel.org List-ID: If pass5 finds bitmap errors in a range of clusters, don't print each cluster number individually when we could print only the start and end cluster number. e2fsck already does this for the non-bigalloc case. Signed-off-by: Darrick J. Wong --- e2fsck/pass5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2fsck/pass5.c b/e2fsck/pass5.c index 346c831..30dc70a 100644 --- a/e2fsck/pass5.c +++ b/e2fsck/pass5.c @@ -528,8 +528,8 @@ redo_counts: save_problem = problem; } else { if ((problem == save_problem) && - (pctx.blk2 == i-1)) - pctx.blk2++; + (pctx.blk2 == i - EXT2FS_CLUSTER_RATIO(fs))) + pctx.blk2 += EXT2FS_CLUSTER_RATIO(fs); else { print_bitmap_problem(ctx, save_problem, &pctx); pctx.blk = pctx.blk2 = i;