diff options
| author | Chao Yu <chao@kernel.org> | 2026-01-16 09:29:27 +0300 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-01-19 20:07:47 +0300 |
| commit | fe15bc3d447c5ee61dbea41c9e9a11fa2968d32d (patch) | |
| tree | f2450289360c3f4baa62e6ff87870d809bedd8c1 | |
| parent | ec8bb999dc0c5d64a3366ce8765a479305a82029 (diff) | |
| download | linux-fe15bc3d447c5ee61dbea41c9e9a11fa2968d32d.tar.xz | |
f2fs: fix error path handling in f2fs_read_data_large_folio()
In error path of f2fs_read_data_large_folio(), if bio is valid, it
may submit bio twice, fix it.
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
| -rw-r--r-- | fs/f2fs/data.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 5b4832956196..d685c889f7b6 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -2577,17 +2577,14 @@ err_out: folio_end_read(folio, !ret); return ret; } - +out: + f2fs_submit_read_bio(F2FS_I_SB(inode), bio, DATA); if (ret) { - f2fs_submit_read_bio(F2FS_I_SB(inode), bio, DATA); - /* Wait bios and clear uptodate. */ folio_lock(folio); folio_clear_uptodate(folio); folio_unlock(folio); } -out: - f2fs_submit_read_bio(F2FS_I_SB(inode), bio, DATA); return ret; } |
