Commit e12c1fd9 authored by Alasdair G Kergon's avatar Alasdair G Kergon

dm cache policy: fix description of lookup fn

Correct the documented requirement on the return code from dm cache policy
lookup functions stated in the policy module header file.
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 058ce5ca
...@@ -130,8 +130,8 @@ struct dm_cache_policy { ...@@ -130,8 +130,8 @@ struct dm_cache_policy {
* *
* Must not block. * Must not block.
* *
* Returns 1 iff in cache, 0 iff not, < 0 on error (-EWOULDBLOCK * Returns 0 if in cache, -ENOENT if not, < 0 for other errors
* would be typical). * (-EWOULDBLOCK would be typical).
*/ */
int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock); int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment