]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Mark bch_errcode helpers __attribute__((const))
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 28 May 2025 15:27:59 +0000 (11:27 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 30 May 2025 15:20:18 +0000 (11:20 -0400)
commitdc43f6a70b9685acabfda210f7cbb0520e952510
treee9d4883f5473e09032924bf45ff5d3d5bf519bbf
parent66621f016d792157fc661fe2cce40ab128009d79
bcachefs: Mark bch_errcode helpers __attribute__((const))

These don't access global memory or defer pointer arguments - this
enables CSE optimizations.

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