Skip to contentSkip to conversation

f2fs: disable nat bits without setting SBI_NEED_FSCK

PATCH In review Yunlei He 3 participants 3 messages Apr 9, 2018 – Apr 10, 2018 F2FS file system

lore
Share & tools
lore

Yunlei He

author
#0 lore raw

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
index 1df7f10..0ffaefc2 100644
@@ -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
maintainer
#2 lore raw
In reply to Yunlei He
Quoted 13 lines · Yunlei He

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 -0
index 1df7f10..0ffaefc2 100644

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 -0
 	if (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