From: "Darrick J. Wong" Subject: [PATCH 41/51] tune2fs: Force MMP update when changing metadata_csum flag Date: Tue, 13 Dec 2011 17:17:49 -0800 Message-ID: <20111214011749.20947.41482.stgit@elm3c44.beaverton.ibm.com> References: <20111214011316.20947.13706.stgit@elm3c44.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: Sunil Mushran , Amir Goldstein , Andi Kleen , Mingming Cao , Joel Becker , linux-ext4@vger.kernel.org, Coly Li To: Andreas Dilger , Theodore Tso , "Darrick J. Wong" Return-path: Received: from e35.co.us.ibm.com ([32.97.110.153]:44204 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932106Ab1LNBR5 (ORCPT ); Tue, 13 Dec 2011 20:17:57 -0500 Received: from /spool/local by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 13 Dec 2011 18:17:56 -0700 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pBE1Hq3h118504 for ; Tue, 13 Dec 2011 18:17:52 -0700 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pBE1Ho2b026753 for ; Tue, 13 Dec 2011 18:17:52 -0700 In-Reply-To: <20111214011316.20947.13706.stgit@elm3c44.beaverton.ibm.com> Sender: linux-ext4-owner@vger.kernel.org List-ID: When changing the metadata_csum flag, always force out a new MMP block. Signed-off-by: Darrick J. Wong --- misc/tune2fs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 8301927..2b06a86 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -704,6 +704,7 @@ static void rewrite_metadata_checksums(ext2_filsys fs) ext2fs_read_bitmaps(fs); ext2fs_mark_ib_dirty(fs); ext2fs_mark_bb_dirty(fs); + ext2fs_mmp_update2(fs, 1); fs->flags &= ~EXT2_FLAG_SUPER_ONLY; fs->flags &= ~EXT2_FLAG_IGNORE_CSUM_ERRORS; if (EXT2_HAS_RO_COMPAT_FEATURE(fs->super,