[PATCHv2 1/3] zpool: add compaction api

2015-09-26 Thread Vitaly Wool
This patch adds two functions to the zpool API: zpool_compact() and zpool_get_num_compacted(). The former triggers compaction for the underlying allocator and the latter retrieves the number of pages migrated due to compaction for the whole time of this pool's existence. Signed-off-by: Vitaly

[PATCHv2 1/3] zpool: add compaction api

2015-09-26 Thread Vitaly Wool
This patch adds two functions to the zpool API: zpool_compact() and zpool_get_num_compacted(). The former triggers compaction for the underlying allocator and the latter retrieves the number of pages migrated due to compaction for the whole time of this pool's existence. Signed-off-by: Vitaly