lkml.org 
[lkml]   [2018]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] fix cluster leakage in ocfs2_defrag_extent
Date
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

\
 
 \ /
  Last update: 2018-09-04 06:17    [W:0.036 / U:9.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site