]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't update s_rev_level if not required
authorAndreas Dilger <adilger@dilger.ca>
Thu, 14 Feb 2019 22:52:18 +0000 (17:52 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 14 Feb 2019 22:52:18 +0000 (17:52 -0500)
commit251d7c0fdc63cd78f70dc3338fe46c757b357f24
tree77d6ae90a17991f610b74d6a45b5557950c6a1f4
parent21e61230e5ee78ce905a5c76acd99b62d3abdba2
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: 179ac24ca51f ("ext4: Allow ext4 to run without a journal")
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/super.c