On Thu, Sep 10, 2020 at 04:48:27PM +0200, Christoph Hellwig wrote:
Just checking SB_I_CGROUPWB for cgroup writeback support is enough.
Either the file system allocates its own bdi (e.g. btrfs), in which case
it is known to support cgroup writeback, or the bdi comes from the block
layer, which always supports cgroup writeback.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <redacted>
Acked-by: David Sterba <dsterba@suse.com>