bcachefs: Extent helper improvements
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 10 Mar 2023 21:28:37 +0000 (16:28 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:56 +0000 (17:09 -0400)
commit702ffea204840455e4f2d918538c39cc5c59666b
tree01eeae0e0b0aeb6b681025bf3a9be680d1abef2a
parent3f5d3fb4025a7196e75250ecee8b6478f086a145
bcachefs: Extent helper improvements

 - __bch2_bkey_drop_ptr() -> bch2_bkey_drop_ptr_noerror(), now available
   outside extents.

 - Split bch2_bkey_has_device() and bch2_bkey_has_device_c(), const and
   non const versions

 - bch2_extent_has_ptr() now returns the pointer it found

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/data_update.c
fs/bcachefs/ec.c
fs/bcachefs/extents.c
fs/bcachefs/extents.h
fs/bcachefs/journal.c
fs/bcachefs/journal_io.c
fs/bcachefs/migrate.c