mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-17 19:14:47 +00:00
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: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
4bdcd1dd4d
commit
ceaa762527
1 changed files with 32 additions and 5 deletions
37
block/fops.c
37
block/fops.c
Loading…
Add table
Add a link
Reference in a new issue