Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
drivers/md/dm-cache-policy.h
··· 130 130 * 131 131 * Must not block. 132 132 * 133 - * Returns 1 iff in cache, 0 iff not, < 0 on error (-EWOULDBLOCK 134 - * would be typical). 133 + * Returns 0 if in cache, -ENOENT if not, < 0 for other errors 134 + * (-EWOULDBLOCK would be typical). 135 135 */ 136 136 int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock); 137 137