diff options
| author | Christoph Hellwig <[email protected]> | 2023-03-27 00:49:51 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-04-17 16:01:22 +0000 |
| commit | 3480373ebdf7625ee29bee6508c9fc4ae70c00bf (patch) | |
| tree | dddeb5c65b5a3d8dd35e31347916ac7d4846ce7b /fs/btrfs/extent_io.c | |
| parent | btrfs, mm: remove the punt_to_cgroup field in struct writeback_control (diff) | |
| download | kernel-3480373ebdf7625ee29bee6508c9fc4ae70c00bf.tar.gz kernel-3480373ebdf7625ee29bee6508c9fc4ae70c00bf.zip | |
btrfs, block: move REQ_CGROUP_PUNT to btrfs
REQ_CGROUP_PUNT is a bit annoying as it is hard to follow and adds
a branch to the bio submission hot path. To fix this, export
blkcg_punt_bio_submit and let btrfs call it directly. Add a new
REQ_FS_PRIVATE flag for btrfs to indicate to it's own low-level
bio submission code that a punt to the cgroup submission helper
is required.
Reviewed-by: Jens Axboe <[email protected]>
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/extent_io.c')
| -rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index f5702b1e2b86..f40e4a002f78 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2538,7 +2538,7 @@ int extent_write_locked_range(struct inode *inode, u64 start, u64 end) struct btrfs_bio_ctrl bio_ctrl = { .wbc = &wbc_writepages, /* We're called from an async helper function */ - .opf = REQ_OP_WRITE | REQ_CGROUP_PUNT | + .opf = REQ_OP_WRITE | REQ_BTRFS_CGROUP_PUNT | wbc_to_write_flags(&wbc_writepages), .extent_locked = 1, }; |
