Skip to contentSkip to conversation

f2fs: fix to recover converted inline_data

PATCH New Jaegeuk Kim 1 participant 1 message Nov 26, 2014

Subsystems (2)
lore
Share & tools
lore

Jaegeuk Kim

author maintainer
#0 lore raw

PATCH 1/1 f2fs: fix to recover converted inline_data

If an inode has converted inline_data which was written to the disk, we should set its inode flag for further fsync so that this inline_data can be recovered from sudden power off.

---
 fs/f2fs/inline.c | 3 +++
 1 file changed, 3 insertions(+)
fs/f2fs/inline.c +3 -0
index e27f290..f2d3c58 100644
@@ -122,6 +122,9 @@ no_update:
 	if (dirty)
 		inode_dec_dirty_pages(dn->inode);
 
+	/* this converted inline_data should be recovered. */
+	set_inode_flag(F2FS_I(dn->inode), FI_APPEND_WRITE);
+
 	/* clear inline data and flag after data writeback */
 	truncate_inline_data(dn->inode_page, 0);
 clear_out:
Signature · 1 line
2.1.1