summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-03-27 03:49:50 +0300
committerDavid Sterba <dsterba@suse.com>2023-04-17 19:01:22 +0300
commit0a0596fbbe5bddd28b1dfae7e7ecb6d70bdbf059 (patch)
treeff8c4f31689ef3c6653bc73ee89d58ece9dd2e05 /fs/btrfs/extent_io.c
parent896d7c1a90f33e9c6ee9002d53980dde4d8b99ee (diff)
downloadlinux-0a0596fbbe5bddd28b1dfae7e7ecb6d70bdbf059.tar.xz
btrfs, mm: remove the punt_to_cgroup field in struct writeback_control
punt_to_cgroup is only used by extent_write_locked_range, but that function also directly controls the bio flags for the actual submission. Remove th punt_to_cgroup field, and just set REQ_CGROUP_PUNT directly in extent_write_locked_range. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 1221f699ffc5..f5702b1e2b86 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2533,13 +2533,13 @@ int extent_write_locked_range(struct inode *inode, u64 start, u64 end)
.sync_mode = WB_SYNC_ALL,
.range_start = start,
.range_end = end + 1,
- /* We're called from an async helper function */
- .punt_to_cgroup = 1,
.no_cgroup_owner = 1,
};
struct btrfs_bio_ctrl bio_ctrl = {
.wbc = &wbc_writepages,
- .opf = REQ_OP_WRITE | wbc_to_write_flags(&wbc_writepages),
+ /* We're called from an async helper function */
+ .opf = REQ_OP_WRITE | REQ_CGROUP_PUNT |
+ wbc_to_write_flags(&wbc_writepages),
.extent_locked = 1,
};