dm cache: resolve small nits and improve Documentation
Document passthrough mode, cache shrinking, and cache invalidation. Also, use strcasecmp() and hlist_unhashed(). Reported-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
@@ -310,7 +310,7 @@ static void free_entry(struct entry_pool *ep, struct entry *e)
|
||||
static struct entry *epool_find(struct entry_pool *ep, dm_cblock_t cblock)
|
||||
{
|
||||
struct entry *e = ep->entries + from_cblock(cblock);
|
||||
return e->hlist.pprev ? e : NULL;
|
||||
return !hlist_unhashed(&e->hlist) ? e : NULL;
|
||||
}
|
||||
|
||||
static bool epool_empty(struct entry_pool *ep)
|
||||
|
Reference in New Issue
Block a user