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)
commite9131e50f9d0a632e3011d73f283ba69be0cc682
tree47bb11a21e189c9312464a03773e42cf96a917f9
parenteeb1168810d8a140f6834f8c4975f7bb3277d790
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