Repository navigation
Commit b89203f
Btrfs: fix eof while discarding extents
We miscalculate the length of extents we're discarding, and it leads to
an eof of device.
Reported-by: Daniel Blueman <daniel@quora.org>
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>1 parent d95603b commit b89203f
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3833 | 3833 | | |
3834 | 3834 | | |
3835 | 3835 | | |
| 3836 | + | |
3836 | 3837 | | |
3837 | 3838 | | |
3838 | 3839 | | |
| |||
3846 | 3847 | | |
3847 | 3848 | | |
3848 | 3849 | | |
| 3850 | + | |
| 3851 | + | |
3849 | 3852 | | |
3850 | 3853 | | |
3851 | 3854 | | |
| |||
3858 | 3861 | | |
3859 | 3862 | | |
3860 | 3863 | | |
| 3864 | + | |
3861 | 3865 | | |
3862 | 3866 | | |
3863 | 3867 | | |
| 3868 | + | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
| 3874 | + | |
| 3875 | + | |
| 3876 | + | |
3864 | 3877 | | |
3865 | 3878 | | |
3866 | 3879 | | |
3867 | | - | |
3868 | | - | |
| 3880 | + | |
| 3881 | + | |
| 3882 | + | |
| 3883 | + | |
3869 | 3884 | | |
3870 | 3885 | | |
| 3886 | + | |
3871 | 3887 | | |
3872 | 3888 | | |
3873 | 3889 | | |
| |||
0 commit comments