btrfs: fix btrfs_submit_compressed_write cgroup attribution
authorDennis Zhou <dennis@kernel.org>
Thu, 31 Mar 2022 21:58:28 +0000 (14:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:36:07 +0000 (09:36 +0200)
commitdb50c6d351ac2ffa19cdc0586e3d61dcf2443ef2
tree280b08ec687219e984fe795b580b5db2cdc93b48
parenta04d37ddfe4be431b9e52e8504490376ab0a39a4
btrfs: fix btrfs_submit_compressed_write cgroup attribution

commit acee08aaf6d158d03668dc82b0a0eef41100531b upstream.

This restores the logic from commit 46bcff2bfc5e ("btrfs: fix compressed
write bio blkcg attribution") which added cgroup attribution to btrfs
writeback. It also adds back the REQ_CGROUP_PUNT flag for these ios.

Fixes: 91507240482e ("btrfs: determine stripe boundary at bio allocation time in btrfs_submit_compressed_write")
CC: stable@vger.kernel.org # 5.16+
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/compression.c