]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit371d217ee1ff8b418b8f73fb2a34990f951ec2d4
tree74d5e95a0aa85b8a8b94621b247a78eb527ce609
parent976e48f8a5b02fc33f3e5cad87fb3fcea041a49c
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