Skip to content
Commit ceaa7625 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: move direct_IO into our own read_iter handler



Don't call into generic_file_read_iter() if we know it's O_DIRECT, just
set it up ourselves and call our own handler. This avoids an indirect call
for O_DIRECT.

Fall back to filemap_read() if we fail.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4bdcd1dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment