f2fs: avoid EINVAL by SBI_NEED_FSCK when pinning a file
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 9 Dec 2021 18:25:43 +0000 (10:25 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:02:47 +0000 (11:02 +0100)
commitc9cd02cb7a26924037ec893bfbad2c367cec9445
tree1b745823f140a34db1d9b8d86fb412d747046fbe
parentdd88a805d2d0ffc68b03302c9302e9d3d8d10172
f2fs: avoid EINVAL by SBI_NEED_FSCK when pinning a file

commit 19bdba5265624ba6b9d9dd936a0c6ccc167cfe80 upstream.

Android OTA failed due to SBI_NEED_FSCK flag when pinning the file. Let's avoid
it since we can do in-place-updates.

Cc: stable@vger.kernel.org
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/data.c
fs/f2fs/file.c