diff options
author | 2024-01-05 20:02:33 -0500 | |
---|---|---|
committer | 2024-01-05 23:24:46 -0500 | |
commit | 169de41985f53320580f3d347534966ea83343ca (patch) | |
tree | 788aef8f5a722f37314d998243e044f36b62894e | |
parent | bcachefs: move "ptrs not changing" optimization to bch2_trigger_extent() (diff) | |
download | linux-169de41985f53320580f3d347534966ea83343ca.tar.gz linux-169de41985f53320580f3d347534966ea83343ca.tar.bz2 linux-169de41985f53320580f3d347534966ea83343ca.zip |
bcachefs: eytzinger0_find() search should be const
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/eytzinger.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/bcachefs/eytzinger.h b/fs/bcachefs/eytzinger.h index 05429c9631cd..9637f636e32d 100644 --- a/fs/bcachefs/eytzinger.h +++ b/fs/bcachefs/eytzinger.h @@ -261,11 +261,11 @@ static inline ssize_t eytzinger0_find_le(void *base, size_t nr, size_t size, #define eytzinger0_find(base, nr, size, _cmp, search) \ ({ \ - void *_base = (base); \ - void *_search = (search); \ - size_t _nr = (nr); \ - size_t _size = (size); \ - size_t _i = 0; \ + void *_base = (base); \ + const void *_search = (search); \ + size_t _nr = (nr); \ + size_t _size = (size); \ + size_t _i = 0; \ int _res; \ \ while (_i < _nr && \ |