diff options
author | Alasdair G Kergon <agk@redhat.com> | 2013-05-10 09:37:17 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2013-05-10 09:37:17 -0400 |
commit | e12c1fd9d680f6b1181ae13efefc416743bd80e5 (patch) | |
tree | bb86784049268de6af9c153bd23a3bf83c74f091 /drivers | |
parent | 058ce5ca8155a4c8eeac9b9e8a70e6664996337b (diff) |
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: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-cache-policy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-cache-policy.h b/drivers/md/dm-cache-policy.h index 558bdfdabf5f..33369ca9614f 100644 --- a/drivers/md/dm-cache-policy.h +++ b/drivers/md/dm-cache-policy.h | |||
@@ -130,8 +130,8 @@ struct dm_cache_policy { | |||
130 | * | 130 | * |
131 | * Must not block. | 131 | * Must not block. |
132 | * | 132 | * |
133 | * Returns 1 iff in cache, 0 iff not, < 0 on error (-EWOULDBLOCK | 133 | * Returns 0 if in cache, -ENOENT if not, < 0 for other errors |
134 | * would be typical). | 134 | * (-EWOULDBLOCK would be typical). |
135 | */ | 135 | */ |
136 | int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock); | 136 | int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock); |
137 | 137 | ||