Skip to content

Commit

Permalink
bcache: Fix heap_peek() macro
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Swenson <nks@daterainc.com>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
  • Loading branch information
Nicholas Swenson authored and Kent Overstreet committed Dec 16, 2013
1 parent 9eb8ebe commit 97d11a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/bcache/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ do { \
_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)

Expand Down

0 comments on commit 97d11a6

Please sign in to comment.