diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-10-08 18:45:29 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:29 -0400 |
commit | 37954a275fce612f60406bc79f5bc0b07b4b6558 (patch) | |
tree | 14acd88d70f6424860f91195622a167ef4eb1374 /fs/bcachefs/replicas.c | |
parent | 9ef6068c4dce124235b335847570ae8f2bf2911d (diff) | |
download | linux-37954a275fce612f60406bc79f5bc0b07b4b6558.tar.gz linux-37954a275fce612f60406bc79f5bc0b07b4b6558.tar.bz2 linux-37954a275fce612f60406bc79f5bc0b07b4b6558.zip |
bcachefs: Limit pointers to being in only one stripe
This make the disk accounting code saner, and it's not clear why we'd
ever want the same data to be in multiple stripes simultaneously.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/replicas.c')
-rw-r--r-- | fs/bcachefs/replicas.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/bcachefs/replicas.c b/fs/bcachefs/replicas.c index afd226f3c8e7..eef9f54808fb 100644 --- a/fs/bcachefs/replicas.c +++ b/fs/bcachefs/replicas.c @@ -84,10 +84,8 @@ static void extent_to_replicas(struct bkey_s_c k, if (p.ptr.cached) continue; - if (p.ec_nr) { + if (p.has_ec) r->nr_required = 0; - break; - } r->devs[r->nr_devs++] = p.ptr.dev; } |