Skip to contentSkip to conversation

f2fs: readahead cp payload pages when mount

PATCH Superseded Chao Yu 1 participant 1 message Sep 11, 2015 F2FS file system

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 4/7 f2fs: readahead cp payload pages when mount

Readahead continuous payload pages in checkpoint area for better performance.

---
 fs/f2fs/checkpoint.c | 3 +++
 1 file changed, 3 insertions(+)
fs/f2fs/checkpoint.c +3 -0
index c5a38e3..7c1b297 100644
@@ -676,6 +676,9 @@ int get_valid_checkpoint(struct f2fs_sb_info *sbi)
 	if (cur_page == cp2)
 		cp_blk_no += 1 << le32_to_cpu(fsb->log_blocks_per_seg);
 
+	if (cp_blks > 2)
+		ra_meta_pages(sbi, cp_blk_no + 1, cp_blks - 1, META_CP);
+
 	for (i = 1; i < cp_blks; i++) {
 		void *sit_bitmap_ptr;
 		unsigned char *ckpt = (unsigned char *)sbi->ckpt;
Signature · 1 line
2.4.2