bcachefs: snapshot_create_lock
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 29 Sep 2023 05:15:33 +0000 (01:15 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:16 +0000 (17:10 -0400)
commit37fad9497f5d37d89ed06faa64d580d1451be664
treed6d54fcf01befddf0534ca915a3bfb60383e1a38
parent1e2d399970ca1d66fa1c715f4d80a0251f2a122e
bcachefs: snapshot_create_lock

Add a new lock for snapshot creation - this addresses a few races with
logged operations and snapshot deletion.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs.h
fs/bcachefs/fs-ioctl.c
fs/bcachefs/io_misc.c
fs/bcachefs/snapshot.c
fs/bcachefs/super.c