summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/ec.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-11-20 18:23:26 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-11-24 03:03:47 -0500
commit0af8a06a4ce823e380385cdd9538cdd968a1ffae (patch)
treee10e6aec12d250e00efe88feea2eb58285dff6c7 /fs/bcachefs/ec.c
parent8a443d3ea1327fea5ac3be77d2e39ebe35bfe9cf (diff)
downloadlinux-stable-0af8a06a4ce823e380385cdd9538cdd968a1ffae.tar.gz
linux-stable-0af8a06a4ce823e380385cdd9538cdd968a1ffae.tar.bz2
linux-stable-0af8a06a4ce823e380385cdd9538cdd968a1ffae.zip
bcachefs: deallocate_extra_replicas()
When allocating from devices with different durability, we might end up with more replicas than required; this changes bch2_alloc_sectors_start() to check for this, and drop replicas that aren't needed to hit the number of replicas requested. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/ec.c')
0 files changed, 0 insertions, 0 deletions