dm persistent data: add threshold callback to space map
authorJoe Thornber <ejt@redhat.com>
Fri, 10 May 2013 13:37:20 +0000 (14:37 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 10 May 2013 13:37:20 +0000 (14:37 +0100)
commit7c3d3f2a87b01ff167a5f048285d5e3dee920235
tree44b483cd78221e412b314c872cb5ddedfdfd2abe
parent24347e9595704464f62a4ed8f46abf62b4c79cdd
dm persistent data: add threshold callback to space map

Add a threshold callback function to the persistent data space map
interface for a subsequent patch to use.

dm-thin and dm-cache are interested in knowing when they're getting
low on metadata or data blocks.  This patch introduces a new method
for registering a callback against a threshold.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/persistent-data/dm-space-map-disk.c
drivers/md/persistent-data/dm-space-map-metadata.c
drivers/md/persistent-data/dm-space-map.h