bcachefs: Add a sysfs attr for triggering discards
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 7 Apr 2022 22:38:16 +0000 (18:38 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:30 +0000 (17:09 -0400)
commit8058ea64c31c8700eaab48c38a143d1c3817f1de
tree9cd4359800fa0c095c44e7f8f577e7ac5b6f7cd7
parent48620e5177ae7cd91722f5c504c5138160b90df4
bcachefs: Add a sysfs attr for triggering discards

We're currently debugging an issue with discards not getting run; this
patch adds a manual trigger so we can then watch the tracepoint while it
runs.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/sysfs.c