--- zzzz-none-000/linux-3.10.107/drivers/md/persistent-data/dm-block-manager.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/md/persistent-data/dm-block-manager.h 2021-02-04 17:41:59.000000000 +0000 @@ -94,7 +94,7 @@ struct dm_block_validator *v, struct dm_block **result); -int dm_bm_unlock(struct dm_block *b); +void dm_bm_unlock(struct dm_block *b); /* * It's a common idiom to have a superblock that should be committed last. @@ -108,6 +108,11 @@ int dm_bm_flush(struct dm_block_manager *bm); /* + * Request data is prefetched into the cache. + */ +void dm_bm_prefetch(struct dm_block_manager *bm, dm_block_t b); + +/* * Switches the bm to a read only mode. Once read-only mode * has been entered the following functions will return -EPERM. * @@ -118,7 +123,9 @@ * Additionally you should not use dm_bm_unlock_move, however no error will * be returned if you do. */ +bool dm_bm_is_read_only(struct dm_block_manager *bm); void dm_bm_set_read_only(struct dm_block_manager *bm); +void dm_bm_set_read_write(struct dm_block_manager *bm); u32 dm_bm_checksum(const void *data, size_t len, u32 init_xor);