diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-21 22:24:46 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:43 -0500 |
| commit | 1a2a9f9f53a6c4d77bc16062fcb65c7169fb6ed1 (patch) | |
| tree | 4217077fa18739604b6f7e66726e8f11a790ed7c /fs/bcachefs/keylist.h | |
| parent | bcachefs: bkey_for_each_ptr() now declares loop iter (diff) | |
| download | linux-1a2a9f9f53a6c4d77bc16062fcb65c7169fb6ed1.tar.gz linux-1a2a9f9f53a6c4d77bc16062fcb65c7169fb6ed1.zip | |
bcachefs: for_each_keylist_key() declares loop iter
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/keylist.h')
| -rw-r--r-- | fs/bcachefs/keylist.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/bcachefs/keylist.h b/fs/bcachefs/keylist.h index fe759c7031e0..e687e0e9aede 100644 --- a/fs/bcachefs/keylist.h +++ b/fs/bcachefs/keylist.h @@ -50,18 +50,16 @@ static inline struct bkey_i *bch2_keylist_front(struct keylist *l) } #define for_each_keylist_key(_keylist, _k) \ - for (_k = (_keylist)->keys; \ + for (struct bkey_i *_k = (_keylist)->keys; \ _k != (_keylist)->top; \ _k = bkey_next(_k)) static inline u64 keylist_sectors(struct keylist *keys) { - struct bkey_i *k; u64 ret = 0; for_each_keylist_key(keys, k) ret += k->k.size; - return ret; } |
