Re: [RFC][PATCH v3] readahead: introduce O_RANDOM forPOSIX_FADV_RANDOM

From: Stephen Rothwell
Date: Mon Jan 04 2010 - 00:17:38 EST


Hi Wu,

On Mon, 4 Jan 2010 12:50:20 +0800 Wu Fengguang <fengguang.wu@xxxxxxxxx> wrote:
>
> --- linux.orig/include/asm-generic/fcntl.h 2010-01-04 12:39:29.000000000 +0800
> +++ linux/include/asm-generic/fcntl.h 2010-01-04 12:40:11.000000000 +0800
> @@ -80,6 +80,10 @@
> #define O_NDELAY O_NONBLOCK
> #endif
>
> +#ifndef O_RANDOM
> +#define O_RANDOM 010000000 /* random access pattern hint */
> +#endif

This value conflicts with O_CLOEXEC on alpha and parisc and O_NOATIME on
sparc.

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature