bcachefs: Fix snapshot_t() usage in bch2_fs_quota_read_inode()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 6 May 2024 02:56:54 +0000 (22:56 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 6 May 2024 14:58:17 +0000 (10:58 -0400)
commit8060bf1d83f7d404bacb0e5a38f2d4d8f4c9dfb7
treeaa351e4df156119f673f731288d586a2e7e90217
parent0ec5b3b7ccfcdca02ab322abf86455d0050ae98f
bcachefs: Fix snapshot_t() usage in bch2_fs_quota_read_inode()

bch2_fs_quota_read_inode() wasn't entirely updated to the
bch2_snapshot_tree() helper, which takes rcu lock.

Reported-by: syzbot+a3a9a61224ed3b7f0010@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/quota.c