summaryrefslogtreecommitdiff
path: root/libbcachefs/fifo.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-10-23 17:39:22 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2022-10-23 18:24:08 -0400
commitae43a58d97fc00e31770142da832fb8a249808eb (patch)
tree95c8fced05f8054eb135b309417415dfa3e5eb18 /libbcachefs/fifo.h
parent188b6d0c8ef1c02462a744b176557c27220112c9 (diff)
Update bcachefs sources to 70fa0c1ff4 fixup! bcachefs: Btree key cache improvements
Diffstat (limited to 'libbcachefs/fifo.h')
-rw-r--r--libbcachefs/fifo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/fifo.h b/libbcachefs/fifo.h
index cdb27270..66b945be 100644
--- a/libbcachefs/fifo.h
+++ b/libbcachefs/fifo.h
@@ -65,7 +65,7 @@ do { \
(((p) - (fifo)->data)))
#define fifo_entry_idx(fifo, p) (((p) - &fifo_peek_front(fifo)) & (fifo)->mask)
-#define fifo_idx_entry(fifo, i) (fifo)->data[((fifo)->front + (i)) & (fifo)->mask]
+#define fifo_idx_entry(fifo, i) ((fifo)->data[((fifo)->front + (i)) & (fifo)->mask])
#define fifo_push_back_ref(f) \
(fifo_full((f)) ? NULL : &(f)->data[(f)->back++ & (f)->mask])