Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: Fix locking in bch2_alloc_write_key()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+1 -1
+1 -1
fs/bcachefs/btree_gc.c
··· 1392 1392 *old, 1393 1393 b->data_type); 1394 1394 gc = *b; 1395 - percpu_up_read(&c->mark_lock); 1396 1395 1397 1396 if (gc.data_type != old_gc.data_type || 1398 1397 gc.dirty_sectors != old_gc.dirty_sectors) 1399 1398 bch2_dev_usage_update_m(c, ca, &old_gc, &gc); 1399 + percpu_up_read(&c->mark_lock); 1400 1400 1401 1401 if (metadata_only && 1402 1402 gc.data_type != BCH_DATA_sb &&