Commit 0797833
committed
Merge tag 'for-6.10-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fixes from David Sterba:
- fix handling of folio private changes.
The private value holds pointer to our extent buffer structure
representing a metadata range. Release and create of the range was
not properly synchronized when updating the private bit which ended
up in double folio_put, leading to all sorts of breakage
- fix a crash, reported as duplicate key in metadata, but caused by a
race of fsync and size extending write. Requires prealloc target
range + fsync and other conditions (log tree state, timing)
- fix leak of qgroup extent records after transaction abort
* tag 'for-6.10-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
btrfs: protect folio::private when attaching extent buffer folios
btrfs: fix leak of qgroup extent records after transaction abort
btrfs: fix crash on racing fsync and size-extending write into prealloc3 files changed
Lines changed: 43 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4538 | 4538 | | |
4539 | 4539 | | |
4540 | 4540 | | |
4541 | | - | |
| 4541 | + | |
4542 | 4542 | | |
4543 | 4543 | | |
4544 | | - | |
4545 | | - | |
4546 | 4544 | | |
4547 | | - | |
4548 | | - | |
4549 | | - | |
4550 | | - | |
4551 | | - | |
4552 | | - | |
4553 | 4545 | | |
4554 | 4546 | | |
4555 | 4547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3689 | 3689 | | |
3690 | 3690 | | |
3691 | 3691 | | |
| 3692 | + | |
| 3693 | + | |
3692 | 3694 | | |
3693 | 3695 | | |
3694 | 3696 | | |
| |||
3756 | 3758 | | |
3757 | 3759 | | |
3758 | 3760 | | |
| 3761 | + | |
3759 | 3762 | | |
3760 | 3763 | | |
3761 | 3764 | | |
3762 | 3765 | | |
3763 | 3766 | | |
3764 | 3767 | | |
3765 | | - | |
| 3768 | + | |
3766 | 3769 | | |
3767 | 3770 | | |
3768 | 3771 | | |
| |||
3774 | 3777 | | |
3775 | 3778 | | |
3776 | 3779 | | |
3777 | | - | |
| 3780 | + | |
3778 | 3781 | | |
3779 | 3782 | | |
3780 | 3783 | | |
3781 | | - | |
| 3784 | + | |
| 3785 | + | |
3782 | 3786 | | |
| 3787 | + | |
3783 | 3788 | | |
3784 | 3789 | | |
3785 | 3790 | | |
| |||
3790 | 3795 | | |
3791 | 3796 | | |
3792 | 3797 | | |
3793 | | - | |
3794 | | - | |
3795 | | - | |
3796 | | - | |
3797 | | - | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
3798 | 3802 | | |
3799 | 3803 | | |
3800 | | - | |
| 3804 | + | |
3801 | 3805 | | |
3802 | 3806 | | |
3803 | 3807 | | |
3804 | 3808 | | |
3805 | 3809 | | |
3806 | 3810 | | |
3807 | 3811 | | |
| 3812 | + | |
3808 | 3813 | | |
3809 | 3814 | | |
3810 | 3815 | | |
| |||
3813 | 3818 | | |
3814 | 3819 | | |
3815 | 3820 | | |
| 3821 | + | |
| 3822 | + | |
| 3823 | + | |
| 3824 | + | |
| 3825 | + | |
| 3826 | + | |
| 3827 | + | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
| 3832 | + | |
| 3833 | + | |
| 3834 | + | |
| 3835 | + | |
| 3836 | + | |
3816 | 3837 | | |
3817 | 3838 | | |
3818 | 3839 | | |
| |||
3824 | 3845 | | |
3825 | 3846 | | |
3826 | 3847 | | |
3827 | | - | |
3828 | 3848 | | |
3829 | 3849 | | |
3830 | 3850 | | |
| |||
3890 | 3910 | | |
3891 | 3911 | | |
3892 | 3912 | | |
3893 | | - | |
| 3913 | + | |
3894 | 3914 | | |
3895 | 3915 | | |
3896 | 3916 | | |
| |||
3927 | 3947 | | |
3928 | 3948 | | |
3929 | 3949 | | |
3930 | | - | |
3931 | | - | |
3932 | | - | |
3933 | | - | |
3934 | | - | |
3935 | | - | |
3936 | | - | |
3937 | | - | |
3938 | | - | |
3939 | | - | |
3940 | | - | |
3941 | | - | |
3942 | | - | |
3943 | | - | |
3944 | | - | |
3945 | | - | |
3946 | | - | |
3947 | | - | |
3948 | 3950 | | |
3949 | 3951 | | |
3950 | 3952 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4860 | 4860 | | |
4861 | 4861 | | |
4862 | 4862 | | |
4863 | | - | |
4864 | | - | |
4865 | | - | |
4866 | | - | |
4867 | | - | |
| 4863 | + | |
| 4864 | + | |
| 4865 | + | |
| 4866 | + | |
| 4867 | + | |
| 4868 | + | |
| 4869 | + | |
| 4870 | + | |
| 4871 | + | |
4868 | 4872 | | |
4869 | | - | |
| 4873 | + | |
4870 | 4874 | | |
4871 | 4875 | | |
4872 | 4876 | | |
4873 | 4877 | | |
4874 | 4878 | | |
| 4879 | + | |
4875 | 4880 | | |
4876 | 4881 | | |
4877 | 4882 | | |
| |||
0 commit comments