diff options
| author | Hongling Zeng <zenghongling@kylinos.cn> | 2026-07-29 15:34:18 +0800 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-08-10 08:47:03 +0200 |
| commit | 6e6a31401445556b58ab9517e256285989be73da (patch) | |
| tree | 3d40dd67f1f5e321907abd9d857874acf468cbfc /drivers/phy/axiado/git@git.tavy.me:linux.git | |
| parent | a94e648f03cf4e0def8ab3c74a1f9fe140720dd4 (diff) | |
xfs: check split_sectors validity before bio_split call
Change the split_sectors check from !split_sectors to split_sectors <= 0
to make the error handling explicit. While bio_split_rw_at() cannot return
a negative error code for the current GC I/O path (GC I/O doesn't use
REQ_ATOMIC/REQ_NOWAIT flags and has proper alignment), making the check
explicit improves code clarity and makes the intent clear.
This also makes the code more robust for future maintenance if different
I/O patterns are introduced.
Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'drivers/phy/axiado/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
