[PATCH 0/2] refactor reclaim function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This series adds nilfs_xreclaim_segment() api function to the GC
library, and modifies cleneard so that it uses the extended API
function.

nilfs_xreclaim_segment() is an enhanced version of the existing GC
function (nilfs_reclaim_segment).

The nilfs_xreclaim_segment() works like nilfs_reclaim_segment()
except the following differences:

 - takes GC parameters in an expandable way.
   (with nilfs_reclaim_params struct)

 - can output statistics information of selected segments,
   for instance, the number live or defunct blocks, etc.

 - takes a dry-run argument

 - no longer returns the number of cleaned segments.  The value will
   be stored in cleaned_segs member of nilfs_reclaim_stat struct.

This series is intended to give a framework for the forthcoming
enhancement of garbage collection library and cleanerd daemon.

nilfs_reclaim_segment() function is still maintained for compatibility
reason.

Regards,
Ryusuke Konishi
---
Ryusuke Konishi (2):
      lib/gc.c: refactor reclaim function
      cleanerd: use nilfs_xreclaim_segment()

 include/nilfs_gc.h       |   60 +++++++++++++++++++++++++
 lib/gc.c                 |  111 +++++++++++++++++++++++++++++++++++++++-------
 sbin/cleanerd/cleanerd.c |   57 +++++++++++++++---------
 3 files changed, 192 insertions(+), 36 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux