]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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:21:26 +0000 (17:21 -0700)
commit52a366e0f6b5d2190055dc1ae39a3b421c1f21e2
treecd6abb81ab71c82231b8f6190831a65446c5dbcc
parent702c0563a79cb487988dfc83a4e9089435baf8e3
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