]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Correct the documented requirement on the return code from dm cache policy
authorAlasdair G Kergon <agk@redhat.com>
Wed, 3 Apr 2013 22:52:23 +0000 (09:52 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Apr 2013 22:53:05 +0000 (09:53 +1100)
lookup functions stated in the policy module header file.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-cache-policy.h

index 558bdfdabf5f2da39e5bef487dc5008a2399b659..33369ca9614f978ae0481e0d79677c980660f42d 100644 (file)
@@ -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);