f2fs-tools: add extent cache for each file
PATCH 1/1 f2fs-tools: add extent cache for each file
From: Daeho Jeong <[email protected]>
This patch adds an extent cache for ro partition.
Signed-off-by Daeho Jeong <[email protected]>
Signed-off-by Jaegeuk Kim <[email protected]>
--- fsck/f2fs.h | 8 ++++ fsck/mount.c | 8 ---- fsck/segment.c | 105 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+), 8 deletions(-)
fsck/f2fs.h +8 -0
@@ -527,6 +527,14 @@ static inline bool IS_VALID_BLK_ADDR(struct f2fs_sb_info *sbi, u32 addr)return 1 ; } +static inline bool is_valid_data_blkaddr (block_t blkaddr) +{ +if (blkaddr ==NEW_ADDR || blkaddr ==NULL_ADDR || + blkaddr ==COMPRESS_ADDR ) +return 0 ; +return 1 ; +} +static inline int IS_CUR_SEGNO (struct f2fs_sb_info *sbi,u32 segno) {int i;
fsck/mount.c +0 -8
@@ -582,14 +582,6 @@ void print_sb_state(struct f2fs_super_block *sb)MSG (0 ,"\n" ); } -static inline bool is_valid_data_blkaddr (block_t blkaddr) -{ -if (blkaddr ==NEW_ADDR || blkaddr ==NULL_ADDR || - blkaddr ==COMPRESS_ADDR ) -return 0 ; -return 1 ; -} -bool f2fs_is_valid_blkaddr (struct f2fs_sb_info *sbi,block_t blkaddr,int type) {
fsck/segment.c +105 -0
117 lines not on this page · raw message
Signature · 8 lines
2.32.0.288.g62a8d224e6-goog _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel