]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c03ab9de967fdcc25c2d5be5faca749191536a3
tree44b483cd78221e412b314c872cb5ddedfdfd2abe
parent8fd7b6d4dd7c4b6a63c93ffdaea50f4be689cc1e
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