diff options
author | Christoph Hellwig <hch@lst.de> | 2022-05-16 08:36:54 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-05-16 19:37:50 +0200 |
commit | a3e7689bfaae031177ebbb257d5a704b47236044 (patch) | |
tree | 00ec0c499da452e088fd9350295cbce4f4c6dd42 /block/bdev.c | |
parent | block: Fix the bio.bi_opf comment (diff) | |
download | linux-a3e7689bfaae031177ebbb257d5a704b47236044.tar.xz linux-a3e7689bfaae031177ebbb257d5a704b47236044.zip |
block: cleanup the VM accounting in submit_bio
submit_bio uses some extremely convoluted checks and confusing comments
to only account REQ_OP_READ/REQ_OP_WRITE comments. Just switch to the
plain obvious checks instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220516063654.2782792-1-hch@lst.de
[axboe: fixup WRITE -> REQ_OP_WRITE]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bdev.c')
0 files changed, 0 insertions, 0 deletions