f2fs: disable nat bits without setting SBI_NEED_FSCK
PATCH 1/1 f2fs: disable nat bits without setting SBI_NEED_FSCK
nat bits feature is recover default by fsck, no need to set SBI_NEED_FSCK flag.
--- fs/f2fs/f2fs.h | 2 -- 1 file changed, 2 deletions(-)
fs/f2fs/f2fs.h +0 -2
@@ -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 ); -if (lock)spin_lock_irqsave (&sbi->cp_lock, flags);__clear_ckpt_flags (F2FS_CKPT (sbi),CP_NAT_BITS_FLAG );
Signature · 6 lines
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
Quoted 4 lines · Yunlei He
nat bits feature is recover default by fsck, no need to set
SBI_NEED_FSCKflag.Signed-off-by Yunlei He <[email protected]>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Jaegeuk Kim
maintainerQuoted 13 lines · Yunlei He
nat bits feature is recover default by fsck, no need to set
SBI_NEED_FSCKflag.Signed-off-by Yunlei He <[email protected]>--- fs/f2fs/f2fs.h | 2 -- 1 file changed, 2 deletions(-)fs/f2fs/f2fs.h +0
-0
fs/f2fs/f2fs.h static inline void disable_nat_bits(struct f2fs_sb_info *sbi, bool lock) · line 1524
Quoted 5 lines
fs/f2fs/f2fs.h +0
-2@@ -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.
Quoted 5 lines
fs/f2fs/f2fs.h +0
-0if (lock)spin_lock_irqsave (&sbi->cp_lock, flags);__clear_ckpt_flags (F2FS_CKPT (sbi),CP_NAT_BITS_FLAG );Signature · 1 line
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