summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2018-09-25 15:36:03 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-20 18:47:40 +0100
commit36ffc9a76df95ee835b5e00667d20c68005cd08c (patch)
treeb6bb3059a7f4339b8359b8d5860c807df31080f5 /fs
parenta4bd303d67745ccb7acae231c4317cca3998cb7c (diff)
downloadlinux-stable-36ffc9a76df95ee835b5e00667d20c68005cd08c.tar.gz
linux-stable-36ffc9a76df95ee835b5e00667d20c68005cd08c.tar.bz2
linux-stable-36ffc9a76df95ee835b5e00667d20c68005cd08c.zip
f2fs: mark inode dirty explicitly in recover_inode()
[ Upstream commit 4a1728cad6340bfbe17bd17fd158b2165cd99508 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/recovery.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c
index 01636d996ba4..733f005b85d6 100644
--- a/fs/f2fs/recovery.c
+++ b/fs/f2fs/recovery.c
@@ -247,6 +247,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