Commit c9e716e
ext4: don't update s_rev_level if not required
Don't update the superblock s_rev_level during mount if it isn't
actually necessary, only if superblock features are being set by
the kernel. This was originally added for ext3 since it always
set the INCOMPAT_RECOVER and HAS_JOURNAL features during mount,
but this is not needed since no journal mode was added to ext4.
That will allow Geert to mount his 20-year-old ext2 rev 0.0 m68k
filesystem, as a testament of the backward compatibility of ext4.
Fixes: 0390131 ("ext4: Allow ext4 to run without a journal")
Signed-off-by: Andreas Dilger <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>1 parent a58ca99 commit c9e716e
3 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
| 1668 | + | |
| 1669 | + | |
1668 | 1670 | | |
1669 | 1671 | | |
1670 | 1672 | | |
| |||
1673 | 1675 | | |
1674 | 1676 | | |
1675 | 1677 | | |
| 1678 | + | |
1676 | 1679 | | |
1677 | 1680 | | |
1678 | 1681 | | |
| |||
1690 | 1693 | | |
1691 | 1694 | | |
1692 | 1695 | | |
| 1696 | + | |
1693 | 1697 | | |
1694 | 1698 | | |
1695 | 1699 | | |
| |||
1707 | 1711 | | |
1708 | 1712 | | |
1709 | 1713 | | |
| 1714 | + | |
1710 | 1715 | | |
1711 | 1716 | | |
1712 | 1717 | | |
| |||
2675 | 2680 | | |
2676 | 2681 | | |
2677 | 2682 | | |
2678 | | - | |
2679 | 2683 | | |
2680 | 2684 | | |
2681 | 2685 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5345 | 5345 | | |
5346 | 5346 | | |
5347 | 5347 | | |
5348 | | - | |
5349 | 5348 | | |
5350 | 5349 | | |
5351 | 5350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2249 | 2249 | | |
2250 | 2250 | | |
2251 | 2251 | | |
2252 | | - | |
2253 | 2252 | | |
2254 | 2253 | | |
2255 | 2254 | | |
| |||
0 commit comments