From 3c7b204547bc3d342a4e31196fe14803581d279f Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Tue, 25 May 2010 23:43:00 -0700 Subject: [PATCH] nommu: allow private mappings of read-only devices Slightly rearrange the logic that determines capabilities and vm_flags. Disable BDI_CAP_MAP_DIRECT in all cases if the device can't support the protections. Allow private readonly mappings of readonly backing devices. Signed-off-by: Bernd Schmidt Signed-off-by: Mike Frysinger Acked-by: David McCullough Acked-by: Greg Ungerer Acked-by: Paul Mundt Acked-by: David Howells Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed