char: Mark /dev/zero and /dev/kmem as not capable of writeback
commit44498d9d63480b416a23e67a57c51481c861f8a3
authorJan Kara <jack@suse.cz>
Tue, 21 Sep 2010 09:49:01 +0000 (21 11:49 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:45:41 +0000 (21 12:45 -0700)
treee244ad44c7890a54924f36d50107317fcb525f0c
parent060049e494a4f234002941aa2403d849ca8c883c
char: Mark /dev/zero and /dev/kmem as not capable of writeback

commit 371d217ee1ff8b418b8f73fb2a34990f951ec2d4 upstream.

These devices don't do any writeback but their device inodes still can get
dirty so mark bdi appropriately so that bdi code does the right thing and files
inodes to lists of bdi carrying the device inodes.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/mem.c
fs/char_dev.c