]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: protect journal inode's blocks using block_validity
authorTheodore Ts'o <tytso@mit.edu>
Wed, 10 Apr 2019 03:37:08 +0000 (23:37 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 10 Apr 2019 03:37:08 +0000 (23:37 -0400)
commit573d8aee59c916f59f6d0115dda1a00673568626
treea24a40bc40343396f6a776d87b5d58d83617d476
parentc440b95d730aaeabb063431fdfb605a8d81b5878
ext4: protect journal inode's blocks using block_validity

Add the blocks which belong to the journal inode to block_validity's
system zone so attempts to deallocate or overwrite the journal due a
corrupted file system where the journal blocks are also claimed by
another inode.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202879
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/block_validity.c
fs/ext4/inode.c