summaryrefslogtreecommitdiffstats
path: root/mm/swap_state.c
diff options
context:
space:
mode:
authorZongxun Wang2014-02-06 21:04:20 +0100
committerLinus Torvalds2014-02-06 22:48:51 +0100
commitfb951eb5e167de9f07973ce0dfff674a2019bfab (patch)
tree4af8a9764fa9050b2aa70cf6683cdff8becb342d /mm/swap_state.c
parentDocumentation/kernel-parameters.txt: fix memmap= language (diff)
downloadkernel-qcow2-linux-fb951eb5e167de9f07973ce0dfff674a2019bfab.tar.gz
kernel-qcow2-linux-fb951eb5e167de9f07973ce0dfff674a2019bfab.tar.xz
kernel-qcow2-linux-fb951eb5e167de9f07973ce0dfff674a2019bfab.zip
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 <wangzongxun@huawei.com> Signed-off-by: Joseph Qi <joseph.qi@huawei.com> Acked-by: Joel Becker <jlbec@evilplan.org> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Li Zefan <lizefan@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap_state.c')
0 files changed, 0 insertions, 0 deletions