[RFC v2 13/17] xfs: use bio_set_status in xfs_zone_alloc_and_submit

Andreas Gruenbacher <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.block,gmane.comp.file-systems.btrfs,gmane.linux.raid
Message-ID <[email protected]>
At label out_split_error in xfs_zone_alloc_and_submit(), IS_ERR(split)
is true, so bio_set_status() compiles down to a simple assignment.

Signed-off-by: Andreas Gruenbacher <[email protected]>
---
 fs/xfs/xfs_zone_alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_zone_alloc.c b/fs/xfs/xfs_zone_alloc.c
index bd6f3ef095cb..2b069cffac00 100644
--- a/fs/xfs/xfs_zone_alloc.c
+++ b/fs/xfs/xfs_zone_alloc.c
@@ -896,7 +896,7 @@ xfs_zone_alloc_and_submit(
 	return;
 
 out_split_error:
-	ioend->io_bio.bi_status = errno_to_blk_status(PTR_ERR(split));
+	bio_set_status(&ioend->io_bio, errno_to_blk_status(PTR_ERR(split)));
 	bio_endio(&ioend->io_bio);
 	return;
 
-- 
2.52.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.