OSDN Git Service

char: Mark /dev/zero and /dev/kmem as not capable of writeback
authorJan Kara <jack@suse.cz>
Tue, 21 Sep 2010 09:49:01 +0000 (11:49 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Sep 2010 00:18:24 +0000 (17:18 -0700)
commit0f8f659720f03fcd2fd68384b9fd2ac43535b4be
tree2519b2b69ce74db2b609c2dedf5330cbd7ef5d8f
parent2263d443c405052b413b65506feb3534d375d55c
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