[PATCH 0/2] fix cluster leakage in ocfs2_defrag_extent

2018-09-03 Thread Larry Chen
ocfs2_defrag_extent might leak clusters allocated. When file system has no enough space, the number of claimed clusters might less than the caller wants. If that happens, the original code might directly commit trans without returning clusters. This patch refered a lot to

[PATCH 0/2] fix cluster leakage in ocfs2_defrag_extent

2018-09-03 Thread Larry Chen
ocfs2_defrag_extent might leak clusters allocated. When file system has no enough space, the number of claimed clusters might less than the caller wants. If that happens, the original code might directly commit trans without returning clusters. This patch refered a lot to