Skip to content

Commit

Permalink
dm cache policy: fix description of lookup fn
Browse files Browse the repository at this point in the history
Correct the documented requirement on the return code from dm cache policy
lookup functions stated in the policy module header file.

Signed-off-by: Alasdair G Kergon <[email protected]>
  • Loading branch information
kergon committed May 10, 2013
1 parent 058ce5c commit e12c1fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/md/dm-cache-policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ struct dm_cache_policy {
*
* Must not block.
*
* Returns 1 iff in cache, 0 iff not, < 0 on error (-EWOULDBLOCK
* would be typical).
* Returns 0 if in cache, -ENOENT if not, < 0 for other errors
* (-EWOULDBLOCK would be typical).
*/
int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock);

Expand Down

0 comments on commit e12c1fd

Please sign in to comment.