]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: recovery of XLOG_UNMOUNT_TRANS leaks memory
authorDave Chinner <dchinner@redhat.com>
Sun, 28 Sep 2014 23:45:18 +0000 (09:45 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 28 Sep 2014 23:45:18 +0000 (09:45 +1000)
commit5a62fedab6680fbd11793165be28c4fed0a216a7
tree47bb11a21e189c9312464a03773e42cf96a917f9
parent31a61677f636e7ca15c7632098107edcc298f2b3
xfs: recovery of XLOG_UNMOUNT_TRANS leaks memory

The XLOG_UNMOUNT_TRANS case skips the transaction, despite the fact
an unmount record is always in a standalone transaction. Hence
whenever we come across one of these we need to free the transaction
structure associated with it as there is no commit record that
follows it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log_recover.c