[1/4] mm: madvise MADV_USERFAULT

Submitted by Andrea Arcangeli on May 7, 2013, 11:34 a.m.

Details

Message ID 20130507113429.GB12538@redhat.com
State New
Headers show

Commit Message

Andrea Arcangeli May 7, 2013, 11:34 a.m.
Hi Andrew,

On Tue, May 07, 2013 at 01:16:30PM +0200, Andrew Jones wrote:
> On Mon, May 06, 2013 at 09:56:58PM +0200, Andrea Arcangeli wrote:
> > @@ -405,6 +420,7 @@ madvise_behavior_valid(int behavior)
> >  	case MADV_HUGEPAGE:
> >  	case MADV_NOHUGEPAGE:
> >  #endif
> > +	case MADV_USERFAULT:
> 
> Missing MADV_NOUSERFAULT: here

Right, thanks! Folded the below in patch 1/4.

Patch hide | download patch | download mbox

diff --git a/mm/madvise.c b/mm/madvise.c
index 2ecab73..8828e5c 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -421,6 +421,7 @@  madvise_behavior_valid(int behavior)
 	case MADV_NOHUGEPAGE:
 #endif
 	case MADV_USERFAULT:
+	case MADV_NOUSERFAULT:
 	case MADV_DONTDUMP:
 	case MADV_DODUMP:
 		return 1;