diff options
author | Mark Tinguely <tinguely@sgi.com> | 2013-10-02 07:51:12 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-12-05 16:50:47 -0600 |
commit | 2a84108fe275f95fbe838b1c92b7c45258dcae5c (patch) | |
tree | 9b58a472bbb962eb416f70cea096e0285eafa942 /fs/nfs/idmap.c | |
parent | dff6efc326a4d5f305797d4a6bba14f374fdd633 (diff) |
xfs: free the list of recovery items on error
Recovery builds a list of items on the transaction's
r_itemq head. Normally these items are committed and freed.
But in the event of a recovery error, these allocations
are leaked.
If the error occurs during item reordering, then reconstruct
the r_itemq list before deleting the list to avoid leaking
the entries that were on one of the temporary lists.
Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/nfs/idmap.c')
0 files changed, 0 insertions, 0 deletions