Commit bc00965
btrfs: count super block write errors in device instead of tracking folio error state
Currently the error status of super block write is tracked in page/folio
status bit Error. For that we need to keep the reference for the whole
duration of write and wait.
Count the number of superblock writeback errors in the btrfs_device.
That means we don't need the folio to stay around until it's waited for,
and can avoid the extra call to folio_get/put.
Also remove a mention of PageError in a comment as it's the last mention
of the page Error state.
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>1 parent 617fb10 commit bc00965
3 files changed
+29
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3634 | 3634 | | |
3635 | 3635 | | |
3636 | 3636 | | |
3637 | | - | |
3638 | 3637 | | |
3639 | 3638 | | |
| 3639 | + | |
| 3640 | + | |
| 3641 | + | |
| 3642 | + | |
| 3643 | + | |
| 3644 | + | |
3640 | 3645 | | |
3641 | | - | |
3642 | 3646 | | |
3643 | 3647 | | |
3644 | 3648 | | |
| |||
3742 | 3746 | | |
3743 | 3747 | | |
3744 | 3748 | | |
3745 | | - | |
3746 | 3749 | | |
3747 | 3750 | | |
3748 | 3751 | | |
| 3752 | + | |
| 3753 | + | |
3749 | 3754 | | |
3750 | 3755 | | |
3751 | 3756 | | |
| |||
3765 | 3770 | | |
3766 | 3771 | | |
3767 | 3772 | | |
3768 | | - | |
| 3773 | + | |
3769 | 3774 | | |
3770 | 3775 | | |
3771 | 3776 | | |
| |||
3785 | 3790 | | |
3786 | 3791 | | |
3787 | 3792 | | |
3788 | | - | |
| 3793 | + | |
3789 | 3794 | | |
3790 | 3795 | | |
3791 | 3796 | | |
3792 | 3797 | | |
3793 | | - | |
3794 | | - | |
3795 | | - | |
3796 | 3798 | | |
3797 | 3799 | | |
3798 | 3800 | | |
| |||
3820 | 3822 | | |
3821 | 3823 | | |
3822 | 3824 | | |
3823 | | - | |
| 3825 | + | |
3824 | 3826 | | |
3825 | | - | |
| 3827 | + | |
3826 | 3828 | | |
3827 | 3829 | | |
3828 | 3830 | | |
3829 | 3831 | | |
3830 | 3832 | | |
3831 | 3833 | | |
3832 | | - | |
| 3834 | + | |
| 3835 | + | |
3833 | 3836 | | |
3834 | 3837 | | |
3835 | 3838 | | |
| |||
3860 | 3863 | | |
3861 | 3864 | | |
3862 | 3865 | | |
3863 | | - | |
3864 | | - | |
3865 | | - | |
3866 | | - | |
| 3866 | + | |
| 3867 | + | |
3867 | 3868 | | |
3868 | | - | |
3869 | 3869 | | |
3870 | 3870 | | |
3871 | 3871 | | |
3872 | 3872 | | |
3873 | | - | |
3874 | | - | |
3875 | | - | |
3876 | | - | |
3877 | | - | |
3878 | | - | |
3879 | | - | |
3880 | | - | |
3881 | | - | |
3882 | | - | |
3883 | 3873 | | |
3884 | 3874 | | |
3885 | 3875 | | |
3886 | | - | |
| 3876 | + | |
| 3877 | + | |
| 3878 | + | |
3887 | 3879 | | |
3888 | 3880 | | |
3889 | 3881 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1602 | 1602 | | |
1603 | 1603 | | |
1604 | 1604 | | |
1605 | | - | |
| 1605 | + | |
1606 | 1606 | | |
1607 | 1607 | | |
1608 | 1608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
145 | 154 | | |
146 | 155 | | |
147 | 156 | | |
| |||
0 commit comments