Skip to content

fix cluster leakage in ocfs2_defrag_extent

Larry Chen lkml ocfs2-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2add declaration of ocfs2_free_local_alloc_bitsfs/ocfs2/alloc.h+6 -01 reply
2/2fix clusters leak in ocfs2_defrag_extentfs/ocfs2/move_extents.c+16 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] fix cluster leakage in ocfs2_defrag_extent

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 ocfs2_add_clusters_in_btree.

Larry Chen (2):
add declaration of ocfs2_free_local_alloc_bits
fix clusters leak in ocfs2_defrag_extent

 fs/ocfs2/alloc.h        |  6 ++++++
 fs/ocfs2/move_extents.c | 16 ++++++++++++++++
 2 files changed, 22 insertions(+)
Signature · 1 line
2.13.7