diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-09-25 10:36:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-20 20:00:45 +0300 |
commit | 34ef1373863cdadb1653f32886f25c3a8e323f6c (patch) | |
tree | 44883a911df20218433e5ca71d9f1cb8c3bb3caa /fs/f2fs | |
parent | 471d39b9f0df0719e547e26fe651bc89338ce098 (diff) | |
download | linux-34ef1373863cdadb1653f32886f25c3a8e323f6c.tar.xz |
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/f2fs')
-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 87942cf2afe1..2eef266b656b 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -227,6 +227,8 @@ static void recover_inode(struct inode *inode, struct page *page) F2FS_I(inode)->i_advise = raw->i_advise; F2FS_I(inode)->i_flags = le32_to_cpu(raw->i_flags); + f2fs_mark_inode_dirty_sync(inode, true); + if (file_enc_name(inode)) name = "<encrypted>"; else |