mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
bcache: Fix heap_peek() macro
Signed-off-by: Nicholas Swenson <nks@daterainc.com> Signed-off-by: Kent Overstreet <kmo@daterainc.com>
This commit is contained in:
parent
9eb8ebeb24
commit
97d11a660f
@ -110,7 +110,7 @@ do { \
|
|||||||
_r; \
|
_r; \
|
||||||
})
|
})
|
||||||
|
|
||||||
#define heap_peek(h) ((h)->size ? (h)->data[0] : NULL)
|
#define heap_peek(h) ((h)->used ? (h)->data[0] : NULL)
|
||||||
|
|
||||||
#define heap_full(h) ((h)->used == (h)->size)
|
#define heap_full(h) ((h)->used == (h)->size)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user