]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't update checksum of new initialized bitmaps
authorTheodore Ts'o <tytso@mit.edu>
Mon, 19 Feb 2018 19:16:47 +0000 (14:16 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 19 Feb 2018 19:16:47 +0000 (14:16 -0500)
commitf5e9c7d9aa1bf4db8e04f2c6c4f82d53c9043ae0
tree0979b1eb9ecf8bacd28b0eced5cf53463eb1856c
parent63cf84b2ff71add562770401905902ce653de657
ext4: don't update checksum of new initialized bitmaps

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
fs/ext4/balloc.c
fs/ext4/ialloc.c