Skip to content

Commit e480751

Browse files
bbkzzJaegeuk Kim
authored andcommitted
f2fs: remove F2FS_SET_FEATURE() and F2FS_CLEAR_FEATURE() macro
F2FS_SET_FEATURE() and F2FS_CLEAR_FEATURE() have never been used since they were introduced by this commit 76f105a("f2fs: add feature facility in superblock"). So let's remove them. BTW, convert f2fs_sb_has_##name to return bool. Signed-off-by: Yangtao Li <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 870af77 commit e480751

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

fs/f2fs/f2fs.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,6 @@ struct f2fs_mount_info {
203203
#define __F2FS_HAS_FEATURE(raw_super, mask) \
204204
((raw_super->feature & cpu_to_le32(mask)) != 0)
205205
#define F2FS_HAS_FEATURE(sbi, mask) __F2FS_HAS_FEATURE(sbi->raw_super, mask)
206-
#define F2FS_SET_FEATURE(sbi, mask) \
207-
(sbi->raw_super->feature |= cpu_to_le32(mask))
208-
#define F2FS_CLEAR_FEATURE(sbi, mask) \
209-
(sbi->raw_super->feature &= ~cpu_to_le32(mask))
210206

211207
/*
212208
* Default values for user and/or group using reserved blocks
@@ -4387,7 +4383,7 @@ static inline bool f2fs_disable_compressed_file(struct inode *inode)
43874383
}
43884384

43894385
#define F2FS_FEATURE_FUNCS(name, flagname) \
4390-
static inline int f2fs_sb_has_##name(struct f2fs_sb_info *sbi) \
4386+
static inline bool f2fs_sb_has_##name(struct f2fs_sb_info *sbi) \
43914387
{ \
43924388
return F2FS_HAS_FEATURE(sbi, F2FS_FEATURE_##flagname); \
43934389
}

0 commit comments

Comments
 (0)