Skip to contentSkip to conversation

Ocfs2: Optimize ocfs2 truncating codes.

PATCH New tristan 1 participant 1 message Jan 27, 2010 OCFS2

lore
Share & tools
lore

tristan

author
#0 lore raw

cover Ocfs2: Optimize ocfs2 truncating codes.

Hi all,

Optimization for ocfs2 truncating including following three patches, our main goal is to generalize truncating codes by using
common ocfs2_remove_btree_range() together with punching holes codes, besides, refcount supporting codes will be transfered from ocfs2_commit_truncate() to ocfs2_remove_btree_range() to let it be more generic, which will also benefit our punching holes codes
as well.

Such patches has been tested slightly(with normal and corner testcases), heavier workload are going to be expected.

We're going to optimize the punching holes codes in next series, on one hand, to truncate records as truncting codes did(from hole_end to hole_start),
on the other hand, add refcount supporting for it.

Regards,
Tristan.