Commit b89b609a authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by Zheng Zengkai
Browse files

f2fs: attach inline_data after setting compression

stable inclusion
from stable-v5.10.127
commit 4b6cdcff7cb8b9324a7fb2cb4460f523b9d4674d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5XDDK

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4b6cdcff7cb8b9324a7fb2cb4460f523b9d4674d



--------------------------------

commit 4cde00d5 upstream.

This fixes the below corruption.

[345393.335389] F2FS-fs (vdb): sanity_check_inode: inode (ino=6d0, mode=33206) should not have inline_data, run fsck to fix

Cc: <stable@vger.kernel.org>
Fixes: 677a82b4 ("f2fs: fix to do sanity check for inline inode")
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent b916cd98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment