]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Clean up option pre/post hooks, small fixes
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 15 Apr 2025 13:54:01 +0000 (09:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:16 +0000 (20:14 -0400)
commitc79eb06da4c34f29ca8bd23ddf7c1d7c1cd16121
tree0ffef1acf07353d521a0f3bf6e3dd0edcdd6a552
parent83ecd1b122f49c907ea3c4178f32bd37223e7fac
bcachefs: Clean up option pre/post hooks, small fixes

The helpers are now:
- bch2_opt_hook_pre_set()
- bch2_opts_hooks_pre_set()
- bch2_opt_hook_post_set

Fix a bug where the filesystem discard option would incorrectly be
changed when setting the device option, and don't trigger rebalance
scans unnecessarily (when options aren't changing).

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