diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-01-19 03:37:44 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:51 -0400 |
commit | 47b323a0b0612c5310c35935a40012125a3e18b8 (patch) | |
tree | ae8b469f4d88d7edf2582bae4177dab6a571742b /fs/bcachefs/inode.c | |
parent | d23124c757490641c2ec8281d54079aea3f3a7ad (diff) |
bcachefs: Start snapshots before bch2_gc()
bch2_gc may require snapshots to be started - the repair path when
checking the reflink btree may do updates to the extents btree.
This moves bch2_fs_initialize_subvolumes() and bch2_fs_snapshots_start()
to before bch2_gc() - since we haven't gone RW yet, the updates in
bch2_fs_initialize_subvolumes() are done via the journal replay keys
list, so it's fine to do this before bch2_gc().
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/inode.c')
0 files changed, 0 insertions, 0 deletions