bcachefs: bch2_bkey_get_mut() improvements
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 28 Apr 2023 03:48:33 +0000 (23:48 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:01 +0000 (17:10 -0400)
commit34dfa5db191fe227c0c413624b7387f1f1804029
tree44af501b23067b94c95d40191829a88917f7c08e
parentd67a16df9c5e03e3e4a672bd6547812baad0bf2c
bcachefs: bch2_bkey_get_mut() improvements

 - bch2_bkey_get_mut() now handles types increasing in size, allocating
   a buffer for the type's current size when necessary
 - bch2_bkey_make_mut_typed()
 - bch2_bkey_get_mut() now initializes the iterator, like
   bch2_bkey_get_iter()

Also, refactor so that most of the code is in functions - now macros are
only used for wrappers.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/btree_update.h
fs/bcachefs/buckets.c
fs/bcachefs/io.c
fs/bcachefs/subvolume.c