summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2014-07-05 16:28:35 -0400
committerJiri Slaby <jslaby@suse.cz>2014-07-18 15:51:25 +0200
commit95f670b4b379ad85b0dacc9e7b724422df1b53f6 (patch)
treefd974a01b333ab3b130c5b02859e120f398f2be4 /crypto
parent07c07190d1632a504f6f1e504e784651986d16fd (diff)
ext4: fix unjournalled bg descriptor while initializing inode bitmap
commit 61c219f5814277ecb71d64cb30297028d6665979 upstream. 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> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions