Repository navigation
Commit f9ae9cf
committed
ext4: revert commit which was causing fs corruption after journal replays
Commit 0076493 ("ext4: initialize multi-block allocator before
checking block descriptors") causes the block group descriptor's count
of the number of free blocks to become inconsistent with the number of
free blocks in the allocation bitmap. This is a harmless form of fs
corruption, but it causes the kernel to potentially remount the file
system read-only, or to panic, depending on the file systems's error
behavior.
Thanks to Eric Whitney for his tireless work to reproduce and to find
the guilty commit.
Fixes: 0076493 ("ext4: initialize multi-block allocator before checking block descriptors"
Cc: stable@vger.kernel.org # 3.15
Reported-by: David Jander <david@protonic.nl>
Reported-by: Matteo Croce <technoboy85@gmail.com>
Tested-by: Eric Whitney <enwlinux@gmail.com>
Suggested-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 5dd2142 commit f9ae9cf
1 file changed
Lines changed: 24 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3879 | 3879 | | |
3880 | 3880 | | |
3881 | 3881 | | |
3882 | | - | |
3883 | | - | |
3884 | | - | |
3885 | | - | |
3886 | | - | |
3887 | | - | |
3888 | | - | |
3889 | | - | |
3890 | | - | |
3891 | | - | |
3892 | | - | |
3893 | | - | |
3894 | | - | |
3895 | | - | |
3896 | | - | |
3897 | | - | |
3898 | | - | |
3899 | | - | |
3900 | | - | |
3901 | | - | |
3902 | 3882 | | |
3903 | 3883 | | |
3904 | | - | |
| 3884 | + | |
3905 | 3885 | | |
3906 | 3886 | | |
3907 | 3887 | | |
3908 | 3888 | | |
3909 | 3889 | | |
3910 | 3890 | | |
3911 | | - | |
| 3891 | + | |
3912 | 3892 | | |
3913 | 3893 | | |
| 3894 | + | |
3914 | 3895 | | |
3915 | 3896 | | |
3916 | 3897 | | |
| |||
3945 | 3926 | | |
3946 | 3927 | | |
3947 | 3928 | | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
| 3935 | + | |
| 3936 | + | |
3948 | 3937 | | |
3949 | 3938 | | |
3950 | 3939 | | |
| |||
4134 | 4123 | | |
4135 | 4124 | | |
4136 | 4125 | | |
4137 | | - | |
| 4126 | + | |
4138 | 4127 | | |
4139 | 4128 | | |
4140 | 4129 | | |
4141 | 4130 | | |
4142 | 4131 | | |
4143 | 4132 | | |
| 4133 | + | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
4144 | 4141 | | |
4145 | 4142 | | |
4146 | 4143 | | |
| |||
4217 | 4214 | | |
4218 | 4215 | | |
4219 | 4216 | | |
4220 | | - | |
| 4217 | + | |
4221 | 4218 | | |
| 4219 | + | |
| 4220 | + | |
| 4221 | + | |
4222 | 4222 | | |
4223 | 4223 | | |
4224 | 4224 | | |
| |||
4242 | 4242 | | |
4243 | 4243 | | |
4244 | 4244 | | |
4245 | | - | |
4246 | | - | |
4247 | 4245 | | |
4248 | 4246 | | |
4249 | 4247 | | |
4250 | 4248 | | |
4251 | 4249 | | |
4252 | | - | |
4253 | 4250 | | |
4254 | 4251 | | |
4255 | 4252 | | |
| |||
0 commit comments