diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-23 21:02:45 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:42 -0500 |
commit | 037a2d9f48285bf3bfed0f55f1aee04d8b329d07 (patch) | |
tree | 5a26b7c20b64037e90eedb6116e3756c98273efb /fs/bcachefs/extents.h | |
parent | defd9e39b59961ea0fd774020fb5c05dba199412 (diff) | |
download | lwn-037a2d9f48285bf3bfed0f55f1aee04d8b329d07.tar.gz lwn-037a2d9f48285bf3bfed0f55f1aee04d8b329d07.zip |
bcachefs: simplify bch_devs_list
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/extents.h')
-rw-r--r-- | fs/bcachefs/extents.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/extents.h b/fs/bcachefs/extents.h index a2ce8a3be13c..4295e93984c4 100644 --- a/fs/bcachefs/extents.h +++ b/fs/bcachefs/extents.h @@ -568,7 +568,7 @@ static inline struct bch_devs_list bch2_bkey_devs(struct bkey_s_c k) const struct bch_extent_ptr *ptr; bkey_for_each_ptr(p, ptr) - ret.devs[ret.nr++] = ptr->dev; + ret.data[ret.nr++] = ptr->dev; return ret; } @@ -581,7 +581,7 @@ static inline struct bch_devs_list bch2_bkey_dirty_devs(struct bkey_s_c k) bkey_for_each_ptr(p, ptr) if (!ptr->cached) - ret.devs[ret.nr++] = ptr->dev; + ret.data[ret.nr++] = ptr->dev; return ret; } @@ -594,7 +594,7 @@ static inline struct bch_devs_list bch2_bkey_cached_devs(struct bkey_s_c k) bkey_for_each_ptr(p, ptr) if (ptr->cached) - ret.devs[ret.nr++] = ptr->dev; + ret.data[ret.nr++] = ptr->dev; return ret; } |