aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2023-03-27 00:49:47 +0000
committerDavid Sterba <[email protected]>2023-04-17 16:01:22 +0000
commit05d06a5c9d9c3c8119c365246dc1e3de2e3c5dd1 (patch)
treef0d6d377e1469eb3242e40a744bb0d5f36b75404 /fs/btrfs/compression.h
parentbtrfs: correctly calculate delayed ref bytes when starting transaction (diff)
downloadkernel-05d06a5c9d9c3c8119c365246dc1e3de2e3c5dd1.tar.gz
kernel-05d06a5c9d9c3c8119c365246dc1e3de2e3c5dd1.zip
btrfs: move kthread_associate_blkcg out of btrfs_submit_compressed_write
btrfs_submit_compressed_write should not have to care if it is called from a helper thread or not. Move the kthread_associate_blkcg handling into submit_one_async_extent, as that is the one caller that needs it. Also move the assignment of REQ_CGROUP_PUNT into cow_file_range_async, as that is the routine that sets up the helper thread offload. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.h')
-rw-r--r--fs/btrfs/compression.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index 5d5146e72a86..19ab2abeddc0 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -92,7 +92,6 @@ void btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start,
struct page **compressed_pages,
unsigned int nr_pages,
blk_opf_t write_flags,
- struct cgroup_subsys_state *blkcg_css,
bool writeback);
void btrfs_submit_compressed_read(struct btrfs_bio *bbio, int mirror_num);