diff options
author | Zongxun Wang <[email protected]> | 2014-02-06 12:04:20 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-02-06 13:48:51 -0800 |
commit | fb951eb5e167de9f07973ce0dfff674a2019bfab (patch) | |
tree | 4af8a9764fa9050b2aa70cf6683cdff8becb342d /tools/perf/util/trace-event-scripting.c | |
parent | 277cba1d28b99169f2a056d0d6f98a4039531cb8 (diff) |
ocfs2: free allocated clusters if error occurs after ocfs2_claim_clusters
Even if using the same jbd2 handle, we cannot rollback a transaction.
So once some error occurs after successfully allocating clusters, the
allocated clusters will never be used and it means they are lost. For
example, call ocfs2_claim_clusters successfully when expanding a file,
but failed in ocfs2_insert_extent. So we need free the allocated
clusters if they are not used indeed.
Signed-off-by: Zongxun Wang <[email protected]>
Signed-off-by: Joseph Qi <[email protected]>
Acked-by: Joel Becker <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Li Zefan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions