bcachefs: Quota: Don't allocate memory under lock
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 14 Nov 2022 03:35:55 +0000 (22:35 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:46 +0000 (17:09 -0400)
commit84fea8e5b3abc9147a20211e608ba8844c479998
tree314ef36a893d7c1799a982d1dd92cae5b58bcde9
parent061f7999a6322c639dd6616dc6d3785957de2bc3
bcachefs: Quota: Don't allocate memory under lock

The genradix code can handle multiple threads trying to allocate at the
same time - we don't need the genradix_ptr_alloc() call to happen under
a lock.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/quota.c