diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-09-25 09:36:03 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-09-26 21:45:33 +0200 |
commit | 4a1728cad6340bfbe17bd17fd158b2165cd99508 (patch) | |
tree | f6f11131be537fb60f96391d5cb56c64b37cc8c6 /fs/f2fs/recovery.c | |
parent | f2fs: fix to recover inode's crtime during POR (diff) | |
download | linux-4a1728cad6340bfbe17bd17fd158b2165cd99508.tar.xz linux-4a1728cad6340bfbe17bd17fd158b2165cd99508.zip |
f2fs: mark inode dirty explicitly in recover_inode()
Mark inode dirty explicitly in the end of recover_inode() to make sure
that all recoverable fields can be persisted later.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/recovery.c')
-rw-r--r-- | fs/f2fs/recovery.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index f11eefc24818..fb24a6d734e9 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -239,6 +239,8 @@ static void recover_inode(struct inode *inode, struct page *page) recover_inline_flags(inode, raw); + f2fs_mark_inode_dirty_sync(inode, true); + if (file_enc_name(inode)) name = "<encrypted>"; else |