From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaegeuk Kim Subject: [PATCH] f2fs-tools: don't finalize device early Date: Sat, 14 Oct 2017 12:22:52 -0700 Message-ID: <20171014192252.52845-1-jaegeuk@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1e3S1X-0007tX-IL for linux-f2fs-devel@lists.sourceforge.net; Sat, 14 Oct 2017 19:23:03 +0000 Received: from mail.kernel.org ([198.145.29.99]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1e3S1W-00007B-KI for linux-f2fs-devel@lists.sourceforge.net; Sat, 14 Oct 2017 19:23:03 +0000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim We should close the device by main body of each tools. Signed-off-by: Jaegeuk Kim --- fsck/mount.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fsck/mount.c b/fsck/mount.c index 7a28314..c78314e 100644 --- a/fsck/mount.c +++ b/fsck/mount.c @@ -1941,9 +1941,6 @@ void write_checkpoint(struct f2fs_sb_info *sbi) if (flags & CP_NAT_BITS_FLAG) write_nat_bits(sbi, sb, cp, sbi->cur_cp); - /* in case of sudden power off */ - f2fs_finalize_device(); - /* write the last cp */ ret = dev_write_block(cp, cp_blk_no++); ASSERT(ret >= 0); -- 2.14.0.rc1.383.gd1ce394fe2-goog ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot