]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: call journal revoke when freeing ea_inode blocks
authorTahsin Erdogan <tahsin@google.com>
Thu, 22 Jun 2017 01:36:51 +0000 (21:36 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jun 2017 01:36:51 +0000 (21:36 -0400)
commitddfa17e4adc4bd19c32216aaa6250dc38b0579df
treedd98d6850e32b6998c97b44d157f0a8d2ce5dc40
parent9e1ba00161a6f3bec8d4e7912025cbf889878e59
ext4: call journal revoke when freeing ea_inode blocks

ea_inode contents are treated as metadata, that's why it is journaled
during initial writes. Failing to call revoke during freeing could cause
user data to be overwritten with original ea_inode contents during journal
replay.

Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c
fs/ext4/indirect.c