]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:08:00 +0000 (18:08 -0500)
commitc97442183f1dc5f94dd714c28a2ec64ea548f0ad
tree27e51d3b884051ea8435fd91d62d6700d0e03035
parenta13068d2ef7d7060a1d71c979a485e7ee63c01f2
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: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/char/mem.c
fs/char_dev.c