diff options
author | Theodore Ts'o <tytso@mit.edu> | 2014-07-05 16:28:35 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-07-05 16:28:35 -0400 |
commit | 61c219f5814277ecb71d64cb30297028d6665979 (patch) | |
tree | aec6f25ce767bcaf3564f83ccfd2a08cde524b9b /crypto | |
parent | 16874b2cb867d3eb63ed838f2847143e11556708 (diff) |
ext4: fix unjournalled bg descriptor while initializing inode bitmap
The first time that we allocate from an uninitialized inode allocation
bitmap, if the block allocation bitmap is also uninitalized, we need
to get write access to the block group descriptor before we start
modifying the block group descriptor flags and updating the free block
count, etc. Otherwise, there is the potential of a bad journal
checksum (if journal checksums are enabled), and of the file system
becoming inconsistent if we crash at exactly the wrong time.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions