diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-16 21:40:26 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:42 -0500 |
| commit | defd9e39b59961ea0fd774020fb5c05dba199412 (patch) | |
| tree | 25875b3bd5b7af3a67b159c9ca674ccc76967c0d /fs/bcachefs/snapshot.h | |
| parent | 559e6c23367f4c122834e7bf4eeac0a3ac382149 (diff) | |
bcachefs: darray_for_each() now declares loop iter
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/snapshot.h')
| -rw-r--r-- | fs/bcachefs/snapshot.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/bcachefs/snapshot.h b/fs/bcachefs/snapshot.h index f09a22f44239..94f35b2cfbb3 100644 --- a/fs/bcachefs/snapshot.h +++ b/fs/bcachefs/snapshot.h @@ -202,8 +202,6 @@ static inline bool bch2_snapshot_has_children(struct bch_fs *c, u32 id) static inline bool snapshot_list_has_id(snapshot_id_list *s, u32 id) { - u32 *i; - darray_for_each(*s, i) if (*i == id) return true; @@ -212,8 +210,6 @@ static inline bool snapshot_list_has_id(snapshot_id_list *s, u32 id) static inline bool snapshot_list_has_ancestor(struct bch_fs *c, snapshot_id_list *s, u32 id) { - u32 *i; - darray_for_each(*s, i) if (bch2_snapshot_is_ancestor(c, id, *i)) return true; |
