diff options
author | Andrew Price <anprice@redhat.com> | 2025-04-23 16:35:28 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2025-04-24 23:12:15 +0200 |
commit | 0a828c3ab07d997c10a86615d3f4ac8e701745b0 (patch) | |
tree | 1882a110922d83eb218a7ae8616c155eb57e6b7b /scripts/lib/kdoc/kdoc_files.py | |
parent | 2c63986dd35fa9eb0d7d1530b5eb2244b7296e22 (diff) |
gfs2: Fix usage of bio->bi_status in gfs2_end_log_write
bio->bi_status is an index into the blk_errors array, not an errno. Its
__bitwise tag is cast away here, resulting in a sparse warning:
fs/gfs2/lops.c:207:22: warning: cast from restricted blk_status_t
We could either add __force to the cast and continue logging bi_status
in the error message, or we could look up the errno in the array and log
that. As sdp->sd_log_error is used as an errno in all other cases, look
up the errno here for consistency.
Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions