Name

generic_file_aio_read2 — generic filesystem read routine

Synopsis

ssize_t generic_file_aio_read2 (struct kiocb * iocb,
 const struct iovec * iov,
 unsigned long nr_segs,
 loff_t pos);
 

Arguments

iocb

kernel I/O control block

iov

io vector request

nr_segs

number of segments in the iovec

pos

current file position

Description

* RHEL7 internal-only functionality ** * Not to be exported, may break unmodified filesystems **

This routine is the same as generic_file_aio_read except on DIO it will check alignment and return -EINVAL or 0 in case of EOF. Use this over generic_file_aio_read in the case your file system is not able to handle AIO DIO read at or past i_size and you do not want to fall back to buffered read in this case. This is used by ext4 in RHEL7.