diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-25 17:27:38 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-25 18:08:00 -0800 |
commit | 95f5b0fc5e25d94ace84dbf5bb4acb8b80b4f062 (patch) | |
tree | 6883e76ad4b5d8041d6b3e9f704893ea92d09f4f /fs/f2fs/inline.c | |
parent | 158c194c375be1b82149f9de80fd90e522979dc5 (diff) | |
download | linux-95f5b0fc5e25d94ace84dbf5bb4acb8b80b4f062.tar.bz2 |
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.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inline.c')
-rw-r--r-- | fs/f2fs/inline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index e27f290cb3ef..f2d3c581e776 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2fs/inline.c @@ -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: |