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)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 14 Dec 2021 19:17:48 +0000 (11:17 -0800)
commit19bdba5265624ba6b9d9dd936a0c6ccc167cfe80
treef42c4b1098ac55edd11e32cc816fc7beb2bfb933
parent325163e9892b627fc9fb1af51e51f0f95dded517
f2fs: avoid EINVAL by SBI_NEED_FSCK when pinning a file

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>
fs/f2fs/data.c
fs/f2fs/file.c