bcachefs: Fix lockdep splat in bch2_readdir
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 21 Jun 2023 10:00:04 +0000 (06:00 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:04 +0000 (17:10 -0400)
commit462f494bc56052e3d17c9ae48a6e407b3f9d2c0c
tree072ec0c6e0fa3c376aa84d5b670391750dc4c480
parentb6898917f2b5532ca7ad9b16131a5a6b513285e5
bcachefs: Fix lockdep splat in bch2_readdir

dir_emit() can fault (taking mmap_lock); thus we can't be holding btree
locks.

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