Searched hist:ae1f56238d55ad6d16564455559d1fa9a8cea2f6 (Results 1 – 1 of 1) sorted by relevance
/linux/fs/bcachefs/ |
H A D | subvolume.c | diff ae1f56238d55ad6d16564455559d1fa9a8cea2f6 Mon Mar 13 12:09:33 CET 2023 Kent Overstreet <kent.overstreet@linux.dev> bcachefs: Mark new snapshots earlier in create path
This fixes a null ptr deref when creating new snapshots: bch2_create_trans() will lookup the subvolume and find the _new_ snapshot in the BCH_CREATE_SUBVOL path that's being created in that transaction.
We have to call bch2_mark_snapshot() earlier so that it's properly initialized, instead of leaving it for transaction commit.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|