[Ocfs2-devel] [PATCH] ocfs2: free allocated clusters if error occurs after ocfs2_claim_clusters

Li Zefan lizefan at huawei.com
Thu Nov 21 17:33:26 PST 2013


On 2013/11/21 20:59, Joseph Qi wrote:
> From: Zongxun Wang <wangzongxun at huawei.com>
> 
> 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.
> 
> Cc: Joseph Qi <joseph.qi at huawei.com>
> Signed-off-by: Zongxun Wang <wangzongxun at huawei.com>

You must also sign the patch.




More information about the Ocfs2-devel mailing list