Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


Commit [61c219] Maximize Restore History

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

Theodore Ts'o Theodore Ts'o 2014-07-05

changed fs
changed fs/ext4
changed fs/ext4/ialloc.c
fs/ext4/ialloc.c Diff Switch to side-by-side view