]> git.baikalelectronics.ru Git - kernel.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)
committerJens Axboe <jaxboe@fusionio.com>
Wed, 22 Sep 2010 07:48:47 +0000 (09:48 +0200)
commitd048d0f094ee89a3d1af75b87495a0198fa0195a
tree74d5e95a0aa85b8a8b94621b247a78eb527ce609
parent4b09321598d666b29e79e084d2cd98a1fec492d3
char: Mark /dev/zero and /dev/kmem as not capable of writeback

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.

Cc: stable@kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/char/mem.c
fs/char_dev.c