diff options
author | 2023-03-27 09:49:51 +0900 | |
---|---|---|
committer | 2023-04-17 18:01:22 +0200 | |
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 | linux-3480373ebdf7625ee29bee6508c9fc4ae70c00bf.tar.gz linux-3480373ebdf7625ee29bee6508c9fc4ae70c00bf.tar.bz2 linux-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 <axboe@kernel.dk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
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, }; |