Skip to contentSkip to conversation

f2fs: obsolete unused MAX_DISCARD_BLOCKS

PATCH New Chao Yu 1 participant 1 message Jul 24, 2022 F2FS file system

lore
Share & tools
lore

Chao Yu

author maintainer
#0 lore raw

PATCH 1/1 f2fs: obsolete unused MAX_DISCARD_BLOCKS

From: Chao Yu <[email protected]>

After commit a7eeb823854c ("f2fs: use bitmap in discard_entry"), MAX_DISCARD_BLOCKS became obsolete, remove it.

---
 fs/f2fs/f2fs.h | 1 -
 1 file changed, 1 deletion(-)
fs/f2fs/f2fs.h +0 -1
index 3f669f851240..51b8cb5b29ba 100644
@@ -230,7 +230,6 @@ enum {
 #define CP_PAUSE	0x00000040
 #define CP_RESIZE 	0x00000080
 
-#define MAX_DISCARD_BLOCKS(sbi)		BLKS_PER_SEC(sbi)
 #define DEF_MAX_DISCARD_REQUEST		8	/* issue 8 discards per round */
 #define DEF_MIN_DISCARD_ISSUE_TIME	50	/* 50 ms, if exists */
 #define DEF_MID_DISCARD_ISSUE_TIME	500	/* 500 ms, if device busy */
Signature · 1 line
2.36.1