summaryrefslogtreecommitdiffstats
path: root/fs/aio.c
diff options
context:
space:
mode:
authorRobert P. J. Day2007-02-10 10:42:56 +0100
committerLinus Torvalds2007-02-11 19:51:17 +0100
commite10a4437cb37c85f2df95432025b392d98aac2aa (patch)
treef8a560ecf6e75f582c0f025385d5e350a21d9fd6 /fs/aio.c
parent[PATCH] slab: use parameter passed to cache_reap to determine pointer to work... (diff)
downloadkernel-qcow2-linux-e10a4437cb37c85f2df95432025b392d98aac2aa.tar.gz
kernel-qcow2-linux-e10a4437cb37c85f2df95432025b392d98aac2aa.tar.xz
kernel-qcow2-linux-e10a4437cb37c85f2df95432025b392d98aac2aa.zip
[PATCH] Remove final references to deprecated "MAP_ANON" page protection flag
Remove the last vestiges of the long-deprecated "MAP_ANON" page protection flag: use "MAP_ANONYMOUS" instead. Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/aio.c')
-rw-r--r--fs/aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/aio.c b/fs/aio.c
index 55991e4132a7..ee662589e5ec 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -132,7 +132,7 @@ static int aio_setup_ring(struct kioctx *ctx)
dprintk("attempting mmap of %lu bytes\n", info->mmap_size);
down_write(&ctx->mm->mmap_sem);
info->mmap_base = do_mmap(NULL, 0, info->mmap_size,
- PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE,
+ PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE,
0);
if (IS_ERR((void *)info->mmap_base)) {
up_write(&ctx->mm->mmap_sem);