]> git.hungrycats.org Git - linux/commit
btrfs: zstd: pass fs_info to btrfs_warn() on failure to allocate workspace manager
authorFilipe Manana <fdmanana@suse.com>
Wed, 28 Oct 2026 15:37:59 +0000 (15:37 +0000)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Oct 2026 20:36:19 +0000 (21:36 +0100)
commit22555f4c55d859edef76145acf61d271a311ed7f
tree20cde06f3ae2c46331d80edf5d47a8116b7f9e2a
parenta1cffaf0ef93d2a8a58d32deee7b07a0403c259a
btrfs: zstd: pass fs_info to btrfs_warn() on failure to allocate workspace manager

The workspace manager is per filesystem and we have access to the fs_info
structure of the filesystem in zstd_alloc_workspace_manager(), so pass it
to the btrfs_warn() call so that we get a better log message (including
the device, state, etc).

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zstd.c