Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f66e5ea2 authored by Theodore Ts'o's avatar Theodore Ts'o Committed by Gerrit - the friendly Code Review server
Browse files

ext4: don't update checksum of new initialized bitmaps



commit 044e6e3d74a3d7103a0c8a9305dfd94d64000660 upstream.

When reading the inode or block allocation bitmap, if the bitmap needs
to be initialized, do not update the checksum in the block group
descriptor.  That's because we're not set up to journal those changes.
Instead, just set the verified bit on the bitmap block, so that it's
not necessary to validate the checksum.

When a block or inode allocation actually happens, at that point the
checksum will be calculated, and update of the bg descriptor block
will be properly journalled.

Bug: 116406122
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I2d2068b787f02d55eb9d1afaefa8b3eb976c2561
Git-repo: https://android.googlesource.com/kernel/msm


Git-commit: 0156349b37e14bf0906a4315ea88b519ddc58fa9
Signed-off-by: default avatarDennis Cagle <dcagle@codeaurora.org>
parent 8e8ec213
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment