Re: [PATCH 4/8] aio: add aio_read_pages and aio_write_pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Zach Brown <zach.brown@xxxxxxxxxx> writes:

> This adds read and write file operations which specify memory with an array of
> page pointers, offsets, and lengths.  AIO commands are added which call these
> methods.  Fields are added to the iocb to specify the pages which are passed to
> the methods.
>
> This is intended to be used by callers in the kernel.
>
> Signed-off-by: Zach Brown <zach.brown@xxxxxxxxxx>
> diff --git a/include/linux/aio_abi.h b/include/linux/aio_abi.h
> index 2c87316..5b67ed6 100644
> --- a/include/linux/aio_abi.h
> +++ b/include/linux/aio_abi.h
> @@ -44,6 +44,8 @@ enum {
>  	IOCB_CMD_NOOP = 6,
>  	IOCB_CMD_PREADV = 7,
>  	IOCB_CMD_PWRITEV = 8,
> +	IOCB_CMD_PREADP = 9,
> +	IOCB_CMD_PWRITEP = 10,

I question the merits of adding commands to the aio_abi that cannot be
called from userspace.  However, I don't know how else you would keep
things consistent.  I guess we live with it.

Reviewed-by: Jeff Moyer <jmoyer@xxxxxxxxxx>

Cheers,
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux