Skip to content

Commit c9dd457

Browse files
committed
Merge tag 'for-6.12-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fix from David Sterba: "One more fix that seems urgent and good to have in 6.12 final. It could potentially lead to unexpected transaction aborts, due to wrong comparison and order of processing of delayed refs" * tag 'for-6.12-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: btrfs: fix incorrect comparison for delayed refs
2 parents cfaaa7d + 7d493a5 commit c9dd457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/delayed-ref.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ static int comp_refs(struct btrfs_delayed_ref_node *ref1,
298298
if (ref1->ref_root < ref2->ref_root)
299299
return -1;
300300
if (ref1->ref_root > ref2->ref_root)
301-
return -1;
301+
return 1;
302302
if (ref1->type == BTRFS_EXTENT_DATA_REF_KEY)
303303
ret = comp_data_refs(ref1, ref2);
304304
}

0 commit comments

Comments
 (0)