projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9eb8ebe
)
bcache: Fix heap_peek() macro
author
Nicholas Swenson
<nks@daterainc.com>
Thu, 24 Oct 2013 00:35:26 +0000
(17:35 -0700)
committer
Kent Overstreet
<kmo@daterainc.com>
Mon, 16 Dec 2013 22:22:57 +0000
(14:22 -0800)
Signed-off-by: Nicholas Swenson <nks@daterainc.com>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/util.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/bcache/util.h
b/drivers/md/bcache/util.h
index 362c4b3f8b4a00e70d2e36af9ee7ec8cbe67e39e..1030c6020e986934e21c94628794e5e342271b49 100644
(file)
--- a/
drivers/md/bcache/util.h
+++ b/
drivers/md/bcache/util.h
@@
-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)