diff options
author | Gao Xiang <hsiangkao@redhat.com> | 2020-09-19 10:27:30 +0300 |
---|---|---|
committer | Gao Xiang <hsiangkao@redhat.com> | 2020-09-19 10:38:14 +0300 |
commit | 6ea5aad32dd8b35af68b1ba955daa368900d3b98 (patch) | |
tree | cc899008cab03905301bb5cfcc1e325009d11d17 /fs/erofs/data.c | |
parent | bf9a123b9cf8d8c67c4c59757cbf4e4b2c4ab2e3 (diff) | |
download | linux-6ea5aad32dd8b35af68b1ba955daa368900d3b98.tar.xz |
erofs: add REQ_RAHEAD flag to readahead requests
Let's add REQ_RAHEAD flag so it'd be easier to identify
readahead I/O requests in blktrace.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Link: https://lore.kernel.org/r/20200919072730.24989-3-hsiangkao@redhat.com
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
Diffstat (limited to 'fs/erofs/data.c')
-rw-r--r-- | fs/erofs/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/erofs/data.c b/fs/erofs/data.c index 459ecb42cbd3..347be146884c 100644 --- a/fs/erofs/data.c +++ b/fs/erofs/data.c @@ -224,7 +224,7 @@ submit_bio_retry: bio_set_dev(bio, sb->s_bdev); bio->bi_iter.bi_sector = (sector_t)blknr << LOG_SECTORS_PER_BLOCK; - bio->bi_opf = REQ_OP_READ; + bio->bi_opf = REQ_OP_READ | (ra ? REQ_RAHEAD : 0); } err = bio_add_page(bio, page, PAGE_SIZE, 0); |