FAILED: patch "[PATCH] btrfs: use bio_is_zone_append() in the completion handler" failed to apply to 6.12-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y
git checkout FETCH_HEAD
git cherry-pick -x 6c3864e055486fadb5b97793b57688082e14b43b
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024122301-ouch-willfully-ae9c@gregkh' --subject-prefix 'PATCH 6.12.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 6c3864e055486fadb5b97793b57688082e14b43b Mon Sep 17 00:00:00 2001
From: Christoph Hellwig <[email protected]>
Date: Mon, 4 Nov 2024 07:26:32 +0100
Subject: [PATCH] btrfs: use bio_is_zone_append() in the completion handler
Otherwise it won't catch bios turned into regular writes by the block level zone write plugging. The additional test it adds is for emulated zone append.
fs/btrfs/bio.c +3 -3
@@ -355,7 +355,7 @@ static void btrfs_simple_end_io(struct bio *bio)INIT_WORK (&bbio->end_io_work, btrfs_end_bio_work);queue_work (btrfs_end_io_wq (fs_info, bio), &bbio->end_io_work); }else { -if (bio_op (bio) ==REQ_OP_ZONE_APPEND && !bio->bi_status) +if (bio_is_zone_append (bio) && !bio->bi_status)btrfs_record_physical_zoned (bbio);btrfs_bio_end_io (bbio, bbio->bio.bi_status); }
@@ -398,7 +398,7 @@ static void btrfs_orig_write_end_io(struct bio *bio)else bio->bi_status =BLK_STS_OK ; -if (bio_op (bio) ==REQ_OP_ZONE_APPEND && !bio->bi_status) +if (bio_is_zone_append (bio) && !bio->bi_status) stripe->physical = bio->bi_iter.bi_sector <<SECTOR_SHIFT ;btrfs_bio_end_io (bbio, bbio->bio.bi_status);
@@ -412,7 +412,7 @@ static void btrfs_clone_write_end_io(struct bio *bio)if (bio->bi_status) {atomic_inc (&stripe->bioc->error);btrfs_log_dev_io_error (bio, stripe->dev); - }else if (bio_op (bio) ==REQ_OP_ZONE_APPEND ) { + }else if (bio_is_zone_append (bio)) { stripe->physical = bio->bi_iter.bi_sector <<SECTOR_SHIFT ; }