diff options
author | Zhiguo Niu <zhiguo.niu@unisoc.com> | 2025-01-21 05:15:41 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-01-23 00:04:56 +0300 |
commit | edf3c0860060f8171d60dc5a6c28cb6702559f32 (patch) | |
tree | 58e18c8e390b4133b2b02df5c28c86b6b2e80c22 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 6d4008dc4a8e0949afe1d9ff27c93fe68672ea06 (diff) | |
download | linux-edf3c0860060f8171d60dc5a6c28cb6702559f32.tar.xz |
f2fs: fix to avoid changing 'check only' behaior of recovery
The following two 'check only recovery' processes are very dependent on
the return value of f2fs_recover_fsync_data, especially when the return
value is greater than 0.
1. when device has readonly mode, shown as commit
23738e74472f ("f2fs: fix to restrict mount condition on readonly block device")
2. mount optiont NORECOVERY or DISABLE_ROLL_FORWARD is set, shown as commit
6781eabba1bd ("f2fs: give -EINVAL for norecovery and rw mount")
However, commit c426d99127b1 ("f2fs: Check write pointer consistency of open zones")
will change the return value unexpectedly, thereby changing the caller's behavior
This patch let the f2fs_recover_fsync_data return correct value,and not do
f2fs_check_and_fix_write_pointer when the device is read-only.
Fixes: c426d99127b1 ("f2fs: Check write pointer consistency of open zones")
Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions