mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] fix cluster leakage in ocfs2_defrag_extent
@ 2018-09-04  4:16 Larry Chen
  2018-09-04  4:16 ` [PATCH 1/2] add declaration of ocfs2_free_local_alloc_bits Larry Chen
  2018-09-04  4:16 ` [PATCH 2/2] fix clusters leak in ocfs2_defrag_extent Larry Chen
  0 siblings, 2 replies; 4+ messages in thread
From: Larry Chen @ 2018-09-04  4:16 UTC (permalink / raw)
  To: mark, jlbec; +Cc: linux-kernel, ocfs2-devel, akpm

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(+)

-- 
2.13.7


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-04 21:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-04  4:16 [PATCH 0/2] fix cluster leakage in ocfs2_defrag_extent Larry Chen
2018-09-04  4:16 ` [PATCH 1/2] add declaration of ocfs2_free_local_alloc_bits Larry Chen
2018-09-04 21:55   ` Andrew Morton
2018-09-04  4:16 ` [PATCH 2/2] fix clusters leak in ocfs2_defrag_extent Larry Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®