[PATCH] NOMMU: Set BDI capabilities for /dev/mem and /dev/kmem
authorDavid Howells <dhowells@redhat.com>
Wed, 27 Sep 2006 08:50:16 +0000 (01:50 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Sep 2006 15:26:14 +0000 (08:26 -0700)
commit5da6185bca064e35aa73a7c1f27488d2b96434f4
treeb854ad2105e177d4b4ec4bb6a5ac26d41ebe368f
parent0ec76a110f432e98277e464b82ace8dd66571689
[PATCH] NOMMU: Set BDI capabilities for /dev/mem and /dev/kmem

Set the backing device info capabilities for /dev/mem and /dev/kmem to
permit direct sharing under no-MMU conditions and full mapping capabilities
under MMU conditions.  Make the BDI used by these available to all directly
mappable character devices.

Also comment the capabilities for /dev/zero.

[akpm@osdl.org: ifdef reductions]
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/mem.c
fs/char_dev.c
include/linux/cdev.h