]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: attach inline_data after setting compression
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 1 Jun 2022 01:27:09 +0000 (18:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 07:03:27 +0000 (09:03 +0200)
commit9ebae611b9df8033ffde21d2ead830070adc5cbb
treebf01be94fa5b68c0764d503a63e720133664db8f
parentcc7ec351ac6b488f0ac055f27a24d3872f90a962
f2fs: attach inline_data after setting compression

commit a2c11527abf1717a6015cb1ed1c106c5b466e1a7 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: 75327635daf6 ("f2fs: fix to do sanity check for inline inode")
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/namei.c