ext4: Fix memory leak of journal buffer if block is updated multiple times
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Tue, 6 Sep 2016 02:36:56 +0000 (04:36 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Sep 2016 13:02:44 +0000 (09:02 -0400)
commitb1edcf0d8045d0b6929ce8d384fb7b350e3fc9ce
tree7b88747ce3c00e0b6f555bc0e7a5e268c4471392
parentde9e831675d72c08c2cc3361a8e9b413ff3facec
ext4: Fix memory leak of journal buffer if block is updated multiple times

If the same block is updated multiple times in a row during a single
file system operation, gd_index is decremented to use the same journal
entry again. Avoid loosing the already allocated buffer.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
fs/ext4/ext4_journal.c