[f2fs-dev] [PATCH AUTOSEL 6.16] f2fs: handle nat.blkaddr corruption in f2fs_get_node_info()

2025-08-08 Thread Sasha Levin via Linux-f2fs-devel
t the error and repair inconsistent nat.blkaddr after device reboot. Note that, let's add sanity check in f2fs_get_node_info() to detect in-memory nat.blkaddr inconsistency, but only if CONFIG_F2FS_CHECK_FS is enabled. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: S

[f2fs-dev] [PATCH AUTOSEL 6.16-6.6] f2fs: check the generic conditions first

2025-08-08 Thread Sasha Levin via Linux-f2fs-devel
egeuk Kim Signed-off-by: Sasha Levin --- LLM Generated explanations, may be completely bogus: **Backport Status: YES** This commit should be backported to stable kernel trees for the following reasons: ## Bug Fix Analysis 1. **Fixes a real bug affecting users**: The commit fixes incorrect

[f2fs-dev] [PATCH AUTOSEL 6.6 04/62] f2fs: use vmalloc instead of kvmalloc in .init_{, de}compress_ctx

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
21.694 -2.12% For compression, we recommend to use ioctl to compress file data in background for workaround. For decompression, only zstd will be affected. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- **YES** This commit should be backported to stable kern

[f2fs-dev] [PATCH AUTOSEL 6.14 097/108] f2fs: fix to set atomic write status more clear

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
ff-by: Sasha Levin --- Now let me analyze the code changes step by step to understand the precise modification: **Analysis of the Commit:** **YES** - This commit should be backported to stable kernel trees. **Extensive Explanation:** This commit addresses a critical issue in f2fs atomic write function

[f2fs-dev] [PATCH AUTOSEL 6.15 069/118] f2fs: fix to bail out in get_new_segment()

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
() detects inconsistent status in between free_segmap and free_secmap, let's record such error into super block, and bail out get_new_segment() instead of continue using the segment. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- **YES** This commit shou

[f2fs-dev] [PATCH AUTOSEL 6.6 55/62] f2fs: fix to set atomic write status more clear

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
ff-by: Sasha Levin --- Now let me analyze the code changes step by step to understand the precise modification: **Analysis of the Commit:** **YES** - This commit should be backported to stable kernel trees. **Extensive Explanation:** This commit addresses a critical issue in f2fs atomic write function

[f2fs-dev] [PATCH AUTOSEL 6.12 85/93] f2fs: fix to set atomic write status more clear

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
ff-by: Sasha Levin --- Now let me analyze the code changes step by step to understand the precise modification: **Analysis of the Commit:** **YES** - This commit should be backported to stable kernel trees. **Extensive Explanation:** This commit addresses a critical issue in f2fs atomic write function

[f2fs-dev] [PATCH AUTOSEL 6.12 53/93] f2fs: fix to bail out in get_new_segment()

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
() detects inconsistent status in between free_segmap and free_secmap, let's record such error into super block, and bail out get_new_segment() instead of continue using the segment. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- **YES** This commit shou

[f2fs-dev] [PATCH AUTOSEL 6.12 04/93] f2fs: use vmalloc instead of kvmalloc in .init_{, de}compress_ctx

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
21.694 -2.12% For compression, we recommend to use ioctl to compress file data in background for workaround. For decompression, only zstd will be affected. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- **YES** This commit should be backported to stable kern

[f2fs-dev] [PATCH AUTOSEL 6.14 062/108] f2fs: fix to bail out in get_new_segment()

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
() detects inconsistent status in between free_segmap and free_secmap, let's record such error into super block, and bail out get_new_segment() instead of continue using the segment. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- **YES** This commit shou

[f2fs-dev] [PATCH AUTOSEL 6.14 004/108] f2fs: use vmalloc instead of kvmalloc in .init_{, de}compress_ctx

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
21.694 -2.12% For compression, we recommend to use ioctl to compress file data in background for workaround. For decompression, only zstd will be affected. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- **YES** This commit should be backported to stable kern

[f2fs-dev] [PATCH AUTOSEL 6.15 106/118] f2fs: fix to set atomic write status more clear

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
ff-by: Sasha Levin --- Now let me analyze the code changes step by step to understand the precise modification: **Analysis of the Commit:** **YES** - This commit should be backported to stable kernel trees. **Extensive Explanation:** This commit addresses a critical issue in f2fs atomic write function

[f2fs-dev] [PATCH AUTOSEL 6.15 004/118] f2fs: use vmalloc instead of kvmalloc in .init_{, de}compress_ctx

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
21.694 -2.12% For compression, we recommend to use ioctl to compress file data in background for workaround. For decompression, only zstd will be affected. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- **YES** This commit should be backported to stable kern

[f2fs-dev] [PATCH AUTOSEL 5.15 044/153] f2fs: defer readonly check vs norecovery

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
moved back into parsing after we switch to the new mount API if desired, as the fs context will have RO state available.) Signed-off-by: Eric Sandeen Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 10 +++--- 1 file changed, 7 insertions(

[f2fs-dev] [PATCH AUTOSEL 6.1 062/212] f2fs: defer readonly check vs norecovery

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
moved back into parsing after we switch to the new mount API if desired, as the fs context will have RO state available.) Signed-off-by: Eric Sandeen Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 10 +++--- 1 file changed, 7 insertions(

[f2fs-dev] [PATCH AUTOSEL 6.6 253/294] f2fs: introduce f2fs_base_attr for global sysfs entries

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
From: Jaegeuk Kim [ Upstream commit 21925ede449e038ed6f9efdfe0e79f15bddc34bc ] In /sys/fs/f2fs/features, there's no f2fs_sb_info, so let's avoid to get the pointer. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/sy

[f2fs-dev] [PATCH AUTOSEL 6.6 078/294] f2fs: defer readonly check vs norecovery

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
moved back into parsing after we switch to the new mount API if desired, as the fs context will have RO state available.) Signed-off-by: Eric Sandeen Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 10 +++--- 1 file changed, 7 insertions(

[f2fs-dev] [PATCH AUTOSEL 6.12 416/486] f2fs: introduce f2fs_base_attr for global sysfs entries

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
From: Jaegeuk Kim [ Upstream commit 21925ede449e038ed6f9efdfe0e79f15bddc34bc ] In /sys/fs/f2fs/features, there's no f2fs_sb_info, so let's avoid to get the pointer. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/sy

[f2fs-dev] [PATCH AUTOSEL 6.12 125/486] f2fs: defer readonly check vs norecovery

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
moved back into parsing after we switch to the new mount API if desired, as the fs context will have RO state available.) Signed-off-by: Eric Sandeen Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 10 +++--- 1 file changed, 7 insertions(

[f2fs-dev] [PATCH AUTOSEL 6.14 539/642] f2fs: introduce f2fs_base_attr for global sysfs entries

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
From: Jaegeuk Kim [ Upstream commit 21925ede449e038ed6f9efdfe0e79f15bddc34bc ] In /sys/fs/f2fs/features, there's no f2fs_sb_info, so let's avoid to get the pointer. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/sy

[f2fs-dev] [PATCH AUTOSEL 6.14 156/642] f2fs: defer readonly check vs norecovery

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
moved back into parsing after we switch to the new mount API if desired, as the fs context will have RO state available.) Signed-off-by: Eric Sandeen Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 10 +++--- 1 file changed, 7 insertions(

[f2fs-dev] [PATCH AUTOSEL 5.15 08/16] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-05 Thread Sasha Levin via Linux-f2fs-devel
: https://lore.kernel.org/all/66fdcdf3.050a0220.40bef.0025@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index b6758887540f

[f2fs-dev] [PATCH AUTOSEL 6.1 09/18] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
: https://lore.kernel.org/all/66fdcdf3.050a0220.40bef.0025@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 745ecf5523c9

[f2fs-dev] [PATCH AUTOSEL 6.6 02/26] f2fs: don't retry IO for corrupted data scenario

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
node block, nid:430, node_footer[nid:2198964142,ino:598252782,ofs:118300154,cpver:5409237455940746069,blkaddr:2125070942] If node block is loaded successfully, but its content is inconsistent, it doesn't need to retry IO. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha

[f2fs-dev] [PATCH AUTOSEL 6.12 31/47] Revert "f2fs: rebuild nat_bits during umount"

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/checkpoint.c | 21 +++-- fs/f2fs/f2fs.h | 32 +- fs/f2fs/node.c | 101 ++- 3 files changed, 59 insertions(+), 95 deletions(-) diff --git a/fs

[f2fs-dev] [PATCH AUTOSEL 5.10 07/15] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
: https://lore.kernel.org/all/66fdcdf3.050a0220.40bef.0025@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 348ad1d6199f

[f2fs-dev] [PATCH AUTOSEL 6.6 15/26] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
: https://lore.kernel.org/all/66fdcdf3.050a0220.40bef.0025@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index dedba481b66d

[f2fs-dev] [PATCH AUTOSEL 6.6 18/26] Revert "f2fs: rebuild nat_bits during umount"

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/checkpoint.c | 21 +++-- fs/f2fs/f2fs.h | 32 +- fs/f2fs/node.c | 101 ++- 3 files changed, 59 insertions(+), 95 deletions(-) diff --git a/fs

[f2fs-dev] [PATCH AUTOSEL 6.1 01/18] f2fs: don't retry IO for corrupted data scenario

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
node block, nid:430, node_footer[nid:2198964142,ino:598252782,ofs:118300154,cpver:5409237455940746069,blkaddr:2125070942] If node block is loaded successfully, but its content is inconsistent, it doesn't need to retry IO. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha

[f2fs-dev] [PATCH AUTOSEL 6.12 27/47] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
: https://lore.kernel.org/all/66fdcdf3.050a0220.40bef.0025@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 4d7b9fd6ef31

[f2fs-dev] [PATCH AUTOSEL 6.12 09/47] f2fs: don't retry IO for corrupted data scenario

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
node block, nid:430, node_footer[nid:2198964142,ino:598252782,ofs:118300154,cpver:5409237455940746069,blkaddr:2125070942] If node block is loaded successfully, but its content is inconsistent, it doesn't need to retry IO. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha

[f2fs-dev] [PATCH AUTOSEL 6.13 31/49] Revert "f2fs: rebuild nat_bits during umount"

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/checkpoint.c | 21 +++-- fs/f2fs/f2fs.h | 32 +- fs/f2fs/node.c | 101 ++- 3 files changed, 59 insertions(+), 95 deletions(-) diff --git a/fs

[f2fs-dev] [PATCH AUTOSEL 6.13 27/49] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
: https://lore.kernel.org/all/66fdcdf3.050a0220.40bef.0025@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 0b900a7a48e5

[f2fs-dev] [PATCH AUTOSEL 6.13 09/49] f2fs: don't retry IO for corrupted data scenario

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
node block, nid:430, node_footer[nid:2198964142,ino:598252782,ofs:118300154,cpver:5409237455940746069,blkaddr:2125070942] If node block is loaded successfully, but its content is inconsistent, it doesn't need to retry IO. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha

[f2fs-dev] [PATCH AUTOSEL 6.14 34/54] Revert "f2fs: rebuild nat_bits during umount"

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/checkpoint.c | 21 +++-- fs/f2fs/f2fs.h | 32 +- fs/f2fs/node.c | 101 ++- 3 files changed, 59 insertions(+), 95 deletions(-) diff --git a/fs

[f2fs-dev] [PATCH AUTOSEL 6.14 30/54] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
: https://lore.kernel.org/all/66fdcdf3.050a0220.40bef.0025@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index f88392fc4ba9

[f2fs-dev] [PATCH AUTOSEL 6.14 11/54] f2fs: don't retry IO for corrupted data scenario

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
node block, nid:430, node_footer[nid:2198964142,ino:598252782,ofs:118300154,cpver:5409237455940746069,blkaddr:2125070942] If node block is loaded successfully, but its content is inconsistent, it doesn't need to retry IO. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha

[f2fs-dev] [PATCH AUTOSEL 6.6 01/12] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
bs=1M count=50 sync rm big mount -o remount,checkpoint=enable f2fs_dir umount f2fs_dir Let's redirty inode when there is not free segments during checkpoint is disable. Signed-off-by: Qi Han Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/inode.

[f2fs-dev] [PATCH AUTOSEL 6.12 01/15] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
bs=1M count=50 sync rm big mount -o remount,checkpoint=enable f2fs_dir umount f2fs_dir Let's redirty inode when there is not free segments during checkpoint is disable. Signed-off-by: Qi Han Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/inode.

[f2fs-dev] [PATCH AUTOSEL 5.15 1/6] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
bs=1M count=50 sync rm big mount -o remount,checkpoint=enable f2fs_dir umount f2fs_dir Let's redirty inode when there is not free segments during checkpoint is disable. Signed-off-by: Qi Han Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/inode.

[f2fs-dev] [PATCH AUTOSEL 6.1 1/6] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
bs=1M count=50 sync rm big mount -o remount,checkpoint=enable f2fs_dir umount f2fs_dir Let's redirty inode when there is not free segments during checkpoint is disable. Signed-off-by: Qi Han Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/inode.

[f2fs-dev] [PATCH AUTOSEL 6.6 12/12] f2fs: fix to shrink read extent node in batches

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
...@unisoc.com/ Signed-off-by: Xiuhong Wang Signed-off-by: Zhiguo Niu Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/extent_cache.c | 69 +- 1 file changed, 41 insertions(+), 28 deletions(-) diff --git a/fs/f2fs

[f2fs-dev] [PATCH AUTOSEL 6.6 11/12] f2fs: print message if fscorrupted was found in f2fs_new_node_page()

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
kaddr in nat entry is not NULL_ADDR which means nat bitmap and nat entry is inconsistent. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c

[f2fs-dev] [PATCH AUTOSEL 6.11 12/13] f2fs: print message if fscorrupted was found in f2fs_new_node_page()

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
kaddr in nat entry is not NULL_ADDR which means nat bitmap and nat entry is inconsistent. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c

[f2fs-dev] [PATCH AUTOSEL 5.4 1/4] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
bs=1M count=50 sync rm big mount -o remount,checkpoint=enable f2fs_dir umount f2fs_dir Let's redirty inode when there is not free segments during checkpoint is disable. Signed-off-by: Qi Han Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/inode.

[f2fs-dev] [PATCH AUTOSEL 5.10 1/4] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
bs=1M count=50 sync rm big mount -o remount,checkpoint=enable f2fs_dir umount f2fs_dir Let's redirty inode when there is not free segments during checkpoint is disable. Signed-off-by: Qi Han Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/inode.

[f2fs-dev] [PATCH AUTOSEL 6.11 13/13] f2fs: fix to shrink read extent node in batches

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
...@unisoc.com/ Signed-off-by: Xiuhong Wang Signed-off-by: Zhiguo Niu Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/extent_cache.c | 69 +- 1 file changed, 41 insertions(+), 28 deletions(-) diff --git a/fs/f2fs

[f2fs-dev] [PATCH AUTOSEL 6.12 13/15] f2fs: print message if fscorrupted was found in f2fs_new_node_page()

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
kaddr in nat entry is not NULL_ADDR which means nat bitmap and nat entry is inconsistent. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c

[f2fs-dev] [PATCH AUTOSEL 6.12 15/15] f2fs: add a sysfs node to limit max read extent count per-inode

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- Documentation/ABI/testing/sysfs-fs-f2fs | 6 ++ fs/f2fs/extent_cache.c | 5 - fs/f2fs/f2fs.h | 4 fs/f2fs/sysfs.c | 10 ++ 4 files chang

[f2fs-dev] [PATCH AUTOSEL 6.11 01/13] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
bs=1M count=50 sync rm big mount -o remount,checkpoint=enable f2fs_dir umount f2fs_dir Let's redirty inode when there is not free segments during checkpoint is disable. Signed-off-by: Qi Han Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/inode.

[f2fs-dev] [PATCH AUTOSEL 6.12 14/15] f2fs: fix to shrink read extent node in batches

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
...@unisoc.com/ Signed-off-by: Xiuhong Wang Signed-off-by: Zhiguo Niu Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/extent_cache.c | 69 +- 1 file changed, 41 insertions(+), 28 deletions(-) diff --git a/fs/f2fs

Re: [f2fs-dev] [PATCH 6.1] f2fs: Require FMODE_WRITE for atomic write ioctls

2024-10-05 Thread Sasha Levin via Linux-f2fs-devel
On Fri, Oct 04, 2024 at 07:34:41PM +, Eric Biggers wrote: From: Jann Horn commit 4f5a100f87f32cb65d4bb1ad282a08c92f6f591e upstream. The F2FS ioctls for starting and committing atomic writes check for inode_owner_or_capable(), but this does not give LSMs like SELinux or Landlock an opportun

[f2fs-dev] [PATCH AUTOSEL 6.10 1/7] f2fs: fix to do sanity check on F2FS_INLINE_DATA flag in inode during GC

2024-07-30 Thread Sasha Levin
im Signed-off-by: Sasha Levin --- fs/f2fs/gc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 6066c6eecf41d..20e2f989013b7 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -1563,6 +1563,16 @@ static int gc_data_segment(struct f2fs_sb_info *sb

[f2fs-dev] [PATCH AUTOSEL 6.6 1/7] f2fs: fix to do sanity check on F2FS_INLINE_DATA flag in inode during GC

2024-07-30 Thread Sasha Levin
im Signed-off-by: Sasha Levin --- fs/f2fs/gc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 3f0632dd9d2e6..ca4249938337c 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -1560,6 +1560,16 @@ static int gc_data_segment(struct f2fs_sb_info *sb

[f2fs-dev] [PATCH AUTOSEL 6.6 2/7] f2fs: fix to do sanity check on blocks for inline_data inode

2024-07-30 Thread Sasha Levin
Signed-off-by: Sasha Levin --- fs/f2fs/f2fs.h | 2 +- fs/f2fs/inline.c | 20 +++- fs/f2fs/inode.c | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index c7e717ab09000..1252d57228dc6 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs

[f2fs-dev] [PATCH AUTOSEL 6.6 3/7] f2fs: fix to cover read extent cache access with lock

2024-07-30 Thread Sasha Levin
ent_tree() to fix this issue. Reported-by: syzbot+74ebe2104433e9dc6...@syzkaller.appspotmail.com Closes: https://lore.kernel.org/linux-f2fs-devel/09beea061740a...@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/extent_cach

[f2fs-dev] [PATCH AUTOSEL 6.10 3/7] f2fs: fix to cover read extent cache access with lock

2024-07-30 Thread Sasha Levin
ent_tree() to fix this issue. Reported-by: syzbot+74ebe2104433e9dc6...@syzkaller.appspotmail.com Closes: https://lore.kernel.org/linux-f2fs-devel/09beea061740a...@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/extent_cach

[f2fs-dev] [PATCH AUTOSEL 6.10 2/7] f2fs: fix to do sanity check on blocks for inline_data inode

2024-07-30 Thread Sasha Levin
Signed-off-by: Sasha Levin --- fs/f2fs/f2fs.h | 2 +- fs/f2fs/inline.c | 20 +++- fs/f2fs/inode.c | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 1974b6aff397c..f463961b497c4 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs

[f2fs-dev] [PATCH AUTOSEL 5.10 1/7] f2fs: remove clear SB_INLINECRYPT flag in default_options

2024-06-05 Thread Sasha Levin
;- set SB_INLINECRYPT again Signed-off-by: Yunlei He Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 9a74d60f61dba..f73b2b9445acd 100644 --- a/fs/f2fs/super.c ++

[f2fs-dev] [PATCH AUTOSEL 5.15 1/9] f2fs: remove clear SB_INLINECRYPT flag in default_options

2024-06-05 Thread Sasha Levin
;- set SB_INLINECRYPT again Signed-off-by: Yunlei He Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index df1e5496352c2..706d7adda3b22 100644 --- a/fs/f2fs/super.c ++

[f2fs-dev] [PATCH AUTOSEL 6.1 01/12] f2fs: remove clear SB_INLINECRYPT flag in default_options

2024-06-05 Thread Sasha Levin
;- set SB_INLINECRYPT again Signed-off-by: Yunlei He Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index c529ce5d986cc..f496622921843 100644 --- a/fs/f2fs/super.c ++

[f2fs-dev] [PATCH AUTOSEL 6.6 14/20] f2fs: fix to do sanity check on i_xattr_nid in sanity_check_inode()

2024-06-05 Thread Sasha Levin
+3694e283cf5c40df6...@syzkaller.appspotmail.com Closes: https://lore.kernel.org/linux-f2fs-devel/94036c0616e72...@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/inode.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/f2fs

[f2fs-dev] [PATCH AUTOSEL 6.6 02/20] f2fs: remove clear SB_INLINECRYPT flag in default_options

2024-06-05 Thread Sasha Levin
;- set SB_INLINECRYPT again Signed-off-by: Yunlei He Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index ab437022ea56f..5d294c8a025ca 100644 --- a/fs/f2fs/super.c ++

[f2fs-dev] [PATCH AUTOSEL 6.6 09/20] f2fs: don't set RO when shutting down f2fs

2024-06-05 Thread Sasha Levin
ted-by: "Light Hsieh (謝明燈)" Reviewed-by: Daeho Jeong Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 5d294c8a025ca..

[f2fs-dev] [PATCH AUTOSEL 6.8 16/24] f2fs: fix to do sanity check on i_xattr_nid in sanity_check_inode()

2024-06-05 Thread Sasha Levin
+3694e283cf5c40df6...@syzkaller.appspotmail.com Closes: https://lore.kernel.org/linux-f2fs-devel/94036c0616e72...@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/inode.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/f2fs

[f2fs-dev] [PATCH AUTOSEL 6.8 10/24] f2fs: don't set RO when shutting down f2fs

2024-06-05 Thread Sasha Levin
ted-by: "Light Hsieh (謝明燈)" Reviewed-by: Daeho Jeong Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 67bedd5b69cc1..

[f2fs-dev] [PATCH AUTOSEL 6.8 02/24] f2fs: remove clear SB_INLINECRYPT flag in default_options

2024-06-05 Thread Sasha Levin
;- set SB_INLINECRYPT again Signed-off-by: Yunlei He Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 4ba613ed3a179..67bedd5b69cc1 100644 --- a/fs/f2fs/super.c ++

[f2fs-dev] [PATCH AUTOSEL 6.9 17/28] f2fs: fix to do sanity check on i_xattr_nid in sanity_check_inode()

2024-06-05 Thread Sasha Levin
+3694e283cf5c40df6...@syzkaller.appspotmail.com Closes: https://lore.kernel.org/linux-f2fs-devel/94036c0616e72...@google.com Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/inode.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/f2fs

[f2fs-dev] [PATCH AUTOSEL 6.9 11/28] f2fs: don't set RO when shutting down f2fs

2024-06-05 Thread Sasha Levin
ted-by: "Light Hsieh (謝明燈)" Reviewed-by: Daeho Jeong Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index e4c795a711f0f..

[f2fs-dev] [PATCH AUTOSEL 6.9 02/28] f2fs: fix to detect inconsistent nat entry during truncation

2024-06-05 Thread Sasha Levin
igned-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index b3de6d6cdb021..bb57bbaff7b4f 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node

[f2fs-dev] [PATCH AUTOSEL 6.9 03/28] f2fs: remove clear SB_INLINECRYPT flag in default_options

2024-06-05 Thread Sasha Levin
;- set SB_INLINECRYPT again Signed-off-by: Yunlei He Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index a4bc26dfdb1af..e4c795a711f0f 100644 --- a/fs/f2fs/super.c ++

[f2fs-dev] [PATCH AUTOSEL 4.19 01/23] f2fs: fix to check return value of f2fs_reserve_new_block()

2024-01-22 Thread Sasha Levin
igger f2fs_bug_on() only for ENOSPC case; - use do-while statement to avoid redundant codes; Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/recovery.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/recovery.c

[f2fs-dev] [PATCH AUTOSEL 5.4 01/24] f2fs: fix to check return value of f2fs_reserve_new_block()

2024-01-22 Thread Sasha Levin
igger f2fs_bug_on() only for ENOSPC case; - use do-while statement to avoid redundant codes; Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/recovery.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/recovery.c

[f2fs-dev] [PATCH AUTOSEL 5.10 08/28] f2fs: fix write pointers on zoned device after roll forward

2024-01-22 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit 9dad4d964291295ef48243d4e03972b85138bc9f ] 1. do roll forward recovery 2. update current segments pointers 3. fix the entire zones' write pointers 4. do checkpoint Reviewed-by: Daeho Jeong Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs

[f2fs-dev] [PATCH AUTOSEL 5.10 01/28] f2fs: fix to check return value of f2fs_reserve_new_block()

2024-01-22 Thread Sasha Levin
igger f2fs_bug_on() only for ENOSPC case; - use do-while statement to avoid redundant codes; Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/recovery.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/recovery.c

[f2fs-dev] [PATCH AUTOSEL 5.15 20/35] f2fs: fix to tag gcing flag on page during block migration

2024-01-22 Thread Sasha Levin
after SPOR. Similar issue was fixed by commit 2d1fe8a86bf5 ("f2fs: fix to tag gcing flag on page during file defragment"). Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/compress.c | 4 +++- fs/f2fs/file.c | 2 ++ 2 files changed, 5 insert

[f2fs-dev] [PATCH AUTOSEL 5.15 08/35] f2fs: fix write pointers on zoned device after roll forward

2024-01-22 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit 9dad4d964291295ef48243d4e03972b85138bc9f ] 1. do roll forward recovery 2. update current segments pointers 3. fix the entire zones' write pointers 4. do checkpoint Reviewed-by: Daeho Jeong Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs

[f2fs-dev] [PATCH AUTOSEL 5.15 01/35] f2fs: fix to check return value of f2fs_reserve_new_block()

2024-01-22 Thread Sasha Levin
igger f2fs_bug_on() only for ENOSPC case; - use do-while statement to avoid redundant codes; Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/recovery.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/recovery.c

[f2fs-dev] [PATCH AUTOSEL 6.1 29/53] f2fs: fix to tag gcing flag on page during block migration

2024-01-22 Thread Sasha Levin
after SPOR. Similar issue was fixed by commit 2d1fe8a86bf5 ("f2fs: fix to tag gcing flag on page during file defragment"). Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/compress.c | 4 +++- fs/f2fs/file.c | 2 ++ 2 files changed, 5 insert

[f2fs-dev] [PATCH AUTOSEL 6.1 12/53] f2fs: fix write pointers on zoned device after roll forward

2024-01-22 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit 9dad4d964291295ef48243d4e03972b85138bc9f ] 1. do roll forward recovery 2. update current segments pointers 3. fix the entire zones' write pointers 4. do checkpoint Reviewed-by: Daeho Jeong Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs

[f2fs-dev] [PATCH AUTOSEL 6.1 01/53] f2fs: fix to check return value of f2fs_reserve_new_block()

2024-01-22 Thread Sasha Levin
igger f2fs_bug_on() only for ENOSPC case; - use do-while statement to avoid redundant codes; Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/recovery.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/recovery.c

[f2fs-dev] [PATCH AUTOSEL 6.6 37/73] f2fs: fix to tag gcing flag on page during block migration

2024-01-22 Thread Sasha Levin
after SPOR. Similar issue was fixed by commit 2d1fe8a86bf5 ("f2fs: fix to tag gcing flag on page during file defragment"). Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/compress.c | 4 +++- fs/f2fs/file.c | 2 ++ 2 files changed, 5 insert

[f2fs-dev] [PATCH AUTOSEL 6.6 13/73] f2fs: fix write pointers on zoned device after roll forward

2024-01-22 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit 9dad4d964291295ef48243d4e03972b85138bc9f ] 1. do roll forward recovery 2. update current segments pointers 3. fix the entire zones' write pointers 4. do checkpoint Reviewed-by: Daeho Jeong Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs

[f2fs-dev] [PATCH AUTOSEL 6.6 01/73] f2fs: fix to check return value of f2fs_reserve_new_block()

2024-01-22 Thread Sasha Levin
igger f2fs_bug_on() only for ENOSPC case; - use do-while statement to avoid redundant codes; Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/recovery.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/recovery.c

[f2fs-dev] [PATCH AUTOSEL 6.7 43/88] f2fs: fix to tag gcing flag on page during block migration

2024-01-22 Thread Sasha Levin
after SPOR. Similar issue was fixed by commit 2d1fe8a86bf5 ("f2fs: fix to tag gcing flag on page during file defragment"). Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/compress.c | 4 +++- fs/f2fs/file.c | 2 ++ 2 files changed, 5 insert

[f2fs-dev] [PATCH AUTOSEL 6.7 01/88] f2fs: fix to check return value of f2fs_reserve_new_block()

2024-01-22 Thread Sasha Levin
igger f2fs_bug_on() only for ENOSPC case; - use do-while statement to avoid redundant codes; Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/recovery.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/recovery.c

[f2fs-dev] [PATCH AUTOSEL 6.7 15/88] f2fs: fix write pointers on zoned device after roll forward

2024-01-22 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit 9dad4d964291295ef48243d4e03972b85138bc9f ] 1. do roll forward recovery 2. update current segments pointers 3. fix the entire zones' write pointers 4. do checkpoint Reviewed-by: Daeho Jeong Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs

[f2fs-dev] [PATCH AUTOSEL 6.5 14/18] f2fs: fix error handling of __get_node_page

2023-11-07 Thread Sasha Levin
From: Zhiguo Niu [ Upstream commit 9b4c8dd99fe48721410741651d426015e03a4b7a ] Use f2fs_handle_error to record inconsistent node block error and return -EFSCORRUPTED instead of -EINVAL. Signed-off-by: Zhiguo Niu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 3

[f2fs-dev] [PATCH AUTOSEL 6.1 08/11] f2fs: fix error handling of __get_node_page

2023-11-07 Thread Sasha Levin
From: Zhiguo Niu [ Upstream commit 9b4c8dd99fe48721410741651d426015e03a4b7a ] Use f2fs_handle_error to record inconsistent node block error and return -EFSCORRUPTED instead of -EINVAL. Signed-off-by: Zhiguo Niu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 3

[f2fs-dev] [PATCH AUTOSEL 6.5 13/18] f2fs: fix error path of __f2fs_build_free_nids

2023-11-07 Thread Sasha Levin
above scenario, it will persist the error flag into superblock synchronously to avoid it has no luck to trigger a checkpoint to record SBI_NEED_FSCK Signed-off-by: Zhiguo Niu Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 11

[f2fs-dev] [PATCH AUTOSEL 6.6 14/18] f2fs: fix error handling of __get_node_page

2023-11-07 Thread Sasha Levin
From: Zhiguo Niu [ Upstream commit 9b4c8dd99fe48721410741651d426015e03a4b7a ] Use f2fs_handle_error to record inconsistent node block error and return -EFSCORRUPTED instead of -EINVAL. Signed-off-by: Zhiguo Niu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 3

[f2fs-dev] [PATCH AUTOSEL 6.6 13/18] f2fs: fix error path of __f2fs_build_free_nids

2023-11-07 Thread Sasha Levin
above scenario, it will persist the error flag into superblock synchronously to avoid it has no luck to trigger a checkpoint to record SBI_NEED_FSCK Signed-off-by: Zhiguo Niu Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 11

[f2fs-dev] [PATCH AUTOSEL 6.1 24/34] f2fs: fix to do sanity check on direct node in truncate_dnode()

2023-07-23 Thread Sasha Levin
u Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/f2fs.h | 1 - fs/f2fs/file.c | 5 - fs/f2fs/node.c | 14 -- include/linux/f2fs_fs.h | 1 + 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f

[f2fs-dev] [PATCH AUTOSEL 6.4 26/40] f2fs: fix to do sanity check on direct node in truncate_dnode()

2023-07-23 Thread Sasha Levin
u Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/f2fs.h | 1 - fs/f2fs/file.c | 5 - fs/f2fs/node.c | 14 -- include/linux/f2fs_fs.h | 1 + 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f

[f2fs-dev] [PATCH AUTOSEL 4.19 11/13] f2fs: fix to drop all dirty pages during umount() if cp_error is set

2023-05-04 Thread Sasha Levin
in f2fs_wait_on_all_pages(), it needs to drop all dirty pages rather than redirtying them. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/checkpoint.c | 12 ++-- fs/f2fs/data.c | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/fs/f

[f2fs-dev] [PATCH AUTOSEL 5.4 13/18] f2fs: fix to drop all dirty pages during umount() if cp_error is set

2023-05-04 Thread Sasha Levin
in f2fs_wait_on_all_pages(), it needs to drop all dirty pages rather than redirtying them. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/checkpoint.c | 12 ++-- fs/f2fs/data.c | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/fs/f

[f2fs-dev] [PATCH AUTOSEL 5.10 15/24] f2fs: fix to drop all dirty pages during umount() if cp_error is set

2023-05-04 Thread Sasha Levin
in f2fs_wait_on_all_pages(), it needs to drop all dirty pages rather than redirtying them. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/checkpoint.c | 12 ++-- fs/f2fs/data.c | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/fs/f

[f2fs-dev] [PATCH AUTOSEL 5.15 18/30] f2fs: fix to check readonly condition correctly

2023-05-04 Thread Sasha Levin
+0xf4/0x120 ret_from_fork+0x29/0x50 Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/f2fs.h | 5 + fs/f2fs/super.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 80e4f9afe86f7..1b450dca

[f2fs-dev] [PATCH AUTOSEL 5.15 17/30] f2fs: fix to drop all dirty pages during umount() if cp_error is set

2023-05-04 Thread Sasha Levin
in f2fs_wait_on_all_pages(), it needs to drop all dirty pages rather than redirtying them. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/checkpoint.c | 12 ++-- fs/f2fs/data.c | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/fs/f

[f2fs-dev] [PATCH AUTOSEL 6.1 24/49] f2fs: fix to check readonly condition correctly

2023-05-04 Thread Sasha Levin
+0xf4/0x120 ret_from_fork+0x29/0x50 Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/f2fs.h | 5 + fs/f2fs/super.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 87664c309b3c8..550065ac

  1   2   3   4   5   >