bcachefs: Second layer of refcounting for new stripes
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 9 Mar 2023 15:18:09 +0000 (10:18 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:56 +0000 (17:09 -0400)
commitfba053d2aaca8f9a4486e865452d80245a8cc215
tree33b64ada1518141ca3053949166bc7b21d91616a
parent10d9f7d2853d5e4c6f21a0dc96f6e98c2d0828e7
bcachefs: Second layer of refcounting for new stripes

This will be used for move writes, which will be waiting until the
stripe is created to do the index update. They need to prevent the
stripe from being reclaimed until their index update is done, so we need
another refcount that just keeps the stripe open.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
# Conflicts:
# fs/bcachefs/ec.c
# fs/bcachefs/io.c
fs/bcachefs/alloc_foreground.c
fs/bcachefs/ec.c
fs/bcachefs/ec.h