From 2e8153777ef46cdca3dfff4deb044d2ccfd03f60 Mon Sep 17 00:00:00 2001 From: nfshp Date: Tue, 11 Mar 2003 14:45:06 +0000 Subject: [PATCH] add a extra param to mmap unless it always return error. --- lustre/include/liblustre.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/include/liblustre.h b/lustre/include/liblustre.h index 6144432..1e57ea4 100644 --- a/lustre/include/liblustre.h +++ b/lustre/include/liblustre.h @@ -258,7 +258,7 @@ static inline struct page *alloc_pages(mask,foo) if (!pg) return NULL; #ifdef MAP_ANONYMOUS - pg->addr = mmap(0, PAGE_SIZE, PROT_WRITE, MAP_ANONYMOUS, 0, 0); + pg->addr = mmap(0, PAGE_SIZE, PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0); #else pg->addr = malloc(PAGE_SIZE); #endif -- 1.8.3.1