]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: CLASS(btree_trans)
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 25 May 2025 05:41:17 +0000 (01:41 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 1 Jun 2025 04:03:12 +0000 (00:03 -0400)
commit9cb49fbf734609c79ba29c43d98e1230ecd1361a
treed923ed2f5f07ad68e7a9f313997a10b2e0d0a98c
parent42359f1615cf0c8184de67408ab294b574cfaaf6
bcachefs: CLASS(btree_trans)

Allow btree_trans to be used with CLASS().

Automatic cleanup, instead of manually calling bch2_trans_put().

We don't use DEFINE_CLASS because using a static inline for the
constructor breaks bch2_trans_get()'s use of __func__, so we have to
open code it.

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