Skip to contentSkip to conversation

f2fs: fix to clear GCed flag for atomic written page

PATCH New Chao Yu 1 participant 1 message Oct 22, 2015 F2FS file system

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 1/3 f2fs: fix to clear GCed flag for atomic written page

Atomic write page can be GCed, after committing this kind of page, we should clear the GCed flag for it.

---
 fs/f2fs/segment.c | 1 +
 1 file changed, 1 insertion(+)
fs/f2fs/segment.c +1 -0
index 7efd96ad..f77b325 100644
@@ -253,6 +253,7 @@ int commit_inmem_pages(struct inode *inode, bool abort)
 					unlock_page(cur->page);
 					break;
 				}
+				clear_cold_data(cur->page);
 				submit_bio = true;
 			}
 		} else {
Signature · 1 line
2.6.1