diff options
author | Theodore Ts'o <tytso@mit.edu> | 2018-02-19 14:16:47 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-24 09:34:12 +0200 |
commit | a06b798c309ed8c919522c639e89613a013c13c4 (patch) | |
tree | a25274820f925a5498e82a307c649332b553ef6c /fs/bad_inode.c | |
parent | 82aad4a72f154f48aacc6592779700b1bad0ae07 (diff) | |
download | linux-stable-a06b798c309ed8c919522c639e89613a013c13c4.tar.gz linux-stable-a06b798c309ed8c919522c639e89613a013c13c4.tar.bz2 linux-stable-a06b798c309ed8c919522c639e89613a013c13c4.zip |
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.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/bad_inode.c')
0 files changed, 0 insertions, 0 deletions