]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: report filesystem shutdown via fserror
authorMiquel Sabaté Solà <mssola@mssola.com>
Mon, 16 Feb 2026 00:28:06 +0000 (01:28 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:55:59 +0000 (18:55 +0200)
commitf11c3d855988ce16da14a416832d0b876f44eece
treec30c28b95fdf5073166b6809a5101d000969a55d
parent2d2b5507e598984f5832f0c5193f35733c42995e
btrfs: report filesystem shutdown via fserror

Commit 347b7042fb26 ("Merge patch series "fs: generic file IO error
reporting"") has introduced a common framework for reporting errors to
fsnotify in a standard way.

One of the functions being introduced is fserror_report_shutdown() that,
when combined with the experimental support for shutdown in btrfs, it
means that user-space can also easily detect whenever a btrfs filesystem
has been marked as shutdown.

Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/fs.h