[GIT PULL] f2fs fix for 5.13-rc1

From: Jaegeuk Kim
Date: Fri May 14 2021 - 06:14:16 EST


Hi Linus,

Could you please consider this pull request?

Thanks,

The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5:

Linux 5.13-rc1 (2021-05-09 14:17:44 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git tags/f2fs-5.13-rc1-fix

for you to fetch changes up to f395183f9544ba2f56b25938d6ea7042bd873521:

f2fs: return EINVAL for hole cases in swap file (2021-05-12 07:38:00 -0700)

----------------------------------------------------------------
f2fs-5.13-rc1-fix

This series of patches fix some critical bugs such as memory leak in compression
flows, kernel panic when handling errors, and swapon failure due to newly added
condition check.

----------------------------------------------------------------
Chao Yu (3):
f2fs: compress: fix to free compress page correctly
f2fs: compress: fix race condition of overwrite vs truncate
f2fs: compress: fix to assign cc.cluster_idx correctly

Jaegeuk Kim (4):
f2fs: avoid null pointer access when handling IPU error
f2fs: support iflag change given the mask
f2fs: avoid swapon failure by giving a warning first
f2fs: return EINVAL for hole cases in swap file

fs/f2fs/compress.c | 55 +++++++++++++++++++++++-------------------------------
fs/f2fs/data.c | 39 +++++++++++++++++++++++++++-----------
fs/f2fs/f2fs.h | 2 +-
fs/f2fs/file.c | 3 ++-
fs/f2fs/segment.c | 4 ++--
5 files changed, 56 insertions(+), 47 deletions(-)