From: Jaegeuk Kim Subject: Re: [PATCH] f2fs: disable nat bits without setting SBI_NEED_FSCK Date: Mon, 9 Apr 2018 21:00:22 -0700 Message-ID: <20180410040022.GC47598@jaegeuk-macbookpro.roam.corp.google.com> References: <1523245249-16260-1-git-send-email-heyunlei@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1f5kSY-0000sK-K1 for linux-f2fs-devel@lists.sourceforge.net; Tue, 10 Apr 2018 04:00:42 +0000 Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1f5kSL-004HTC-6V for linux-f2fs-devel@lists.sourceforge.net; Tue, 10 Apr 2018 04:00:42 +0000 Content-Disposition: inline In-Reply-To: <1523245249-16260-1-git-send-email-heyunlei@huawei.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: Yunlei He Cc: zhangdianfang@huawei.com, linux-f2fs-devel@lists.sourceforge.net On 04/09, Yunlei He wrote: > nat bits feature is recover default by fsck, no need to > set SBI_NEED_FSCK flag. > > Signed-off-by: Yunlei He > --- > fs/f2fs/f2fs.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h > index 1df7f10..0ffaefc2 100644 > --- a/fs/f2fs/f2fs.h > +++ b/fs/f2fs/f2fs.h > @@ -1520,8 +1520,6 @@ static inline void disable_nat_bits(struct f2fs_sb_info *sbi, bool lock) > { > unsigned long flags; > > - set_sbi_flag(sbi, SBI_NEED_FSCK); > - In order to support old fsck.f2fs, we need to keep this. > if (lock) > spin_lock_irqsave(&sbi->cp_lock, flags); > __clear_ckpt_flags(F2FS_CKPT(sbi), CP_NAT_BITS_FLAG); > -- > 1.9.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot