]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Filesystem discard option now propagates to devices
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 13 Mar 2025 04:54:10 +0000 (00:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 24 Mar 2025 13:50:35 +0000 (09:50 -0400)
commit80be08cdb5a82208a0bb67ad93b3fb7447fd2873
treeb18a889a70679a99d4967532f2d9133b4c1b8c55
parent8d7b7ac367cd0e7f0e496ba6526799994b3c1237
bcachefs: Filesystem discard option now propagates to devices

the discard option is special, because it's both a filesystem and a
device option.

When set at the filesytsem level, it's supposed to propagate to (if set
persistently via sysfs) or override (if non persistently as a mount
option) the devices - that now works correctly.

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