From: Aneesh Kumar K.V Date: Tue, 31 Jul 2012 23:41:57 +0000 (-0700) Subject: hugetlb: don't use ERR_PTR with VM_FAULT* values X-Git-Tag: v3.6-rc1~24^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76dcee75c1aff61259f5ed55e2bcfab60cc4bd5f;p=pandora-kernel.git hugetlb: don't use ERR_PTR with VM_FAULT* values The current use of VM_FAULT_* codes with ERR_PTR requires us to ensure VM_FAULT_* values will not exceed MAX_ERRNO value. Decouple the VM_FAULT_* values from MAX_ERRNO. Signed-off-by: Aneesh Kumar K.V Acked-by: Hillf Danton Acked-by: KOSAKI Motohiro Reviewed-by: KAMEZAWA Hiroyuki Cc: David Rientjes Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed