diff options
author | Joe Thornber <ejt@redhat.com> | 2012-07-27 16:08:14 +0200 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-07-27 16:08:14 +0200 |
commit | 40db5a537655aa0b17a82a4b5596f8d27400edd8 (patch) | |
tree | 5e9d59aac1c42d949b47c962d4ee24b4287d23fa /drivers/md/dm-thin-metadata.h | |
parent | dm thin metadata: add format option to dm_pool_metadata_open (diff) | |
download | linux-40db5a537655aa0b17a82a4b5596f8d27400edd8.tar.xz linux-40db5a537655aa0b17a82a4b5596f8d27400edd8.zip |
dm thin metadata: add dm_thin_changed_this_transaction
Introduce dm_thin_changed_this_transaction to dm-thin-metadata to publish a
useful bit of information we're already tracking. This will help dm thin
decide when to commit.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-thin-metadata.h')
-rw-r--r-- | drivers/md/dm-thin-metadata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm-thin-metadata.h b/drivers/md/dm-thin-metadata.h index 7e6656c49bd5..1632fec1660d 100644 --- a/drivers/md/dm-thin-metadata.h +++ b/drivers/md/dm-thin-metadata.h @@ -148,6 +148,8 @@ int dm_thin_remove_block(struct dm_thin_device *td, dm_block_t block); /* * Queries. */ +bool dm_thin_changed_this_transaction(struct dm_thin_device *td); + int dm_thin_get_highest_mapped_block(struct dm_thin_device *td, dm_block_t *highest_mapped); |