diff options
author | Tim Schlueter <schlueter.tim@linux.com> | 2018-11-04 21:14:26 -0800 |
---|---|---|
committer | Tim Schlueter <schlueter.tim@linux.com> | 2018-11-04 21:14:26 -0800 |
commit | 770d75e7e543f1b8060805b602cce589e1072976 (patch) | |
tree | 4b06d971db49c2992c7ced11be0f73a95f0d5ad3 /libbcachefs/fifo.h | |
parent | 25dac4021f3bdbf3cc7b8768a1b6f6e458a01b9a (diff) |
Update bcachefs sources to 7227ff07f14b Merge pull request #10 from modelrockettier/real_mount_time
Diffstat (limited to 'libbcachefs/fifo.h')
-rw-r--r-- | libbcachefs/fifo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbcachefs/fifo.h b/libbcachefs/fifo.h index 085d828e..9715ddbd 100644 --- a/libbcachefs/fifo.h +++ b/libbcachefs/fifo.h @@ -12,7 +12,9 @@ struct { \ #define DECLARE_FIFO(type, name) FIFO(type) name #define fifo_buf_size(fifo) \ - (roundup_pow_of_two((fifo)->size) * sizeof((fifo)->data[0])) + ((fifo)->size \ + ? roundup_pow_of_two((fifo)->size) * sizeof((fifo)->data[0]) \ + : 0) #define init_fifo(fifo, _size, _gfp) \ ({ \ |