]> git.baikalelectronics.ru Git - kernel.git/commit
bdi: initialize ->ra_pages and ->io_pages in bdi_init
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Sep 2020 06:51:32 +0000 (08:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Sep 2020 19:43:39 +0000 (13:43 -0600)
commit1d30f59c9ced56a732ef4da7b50df1b67f8dad65
tree7c73dedc9d9d3add3d3bd9ab94b1bbe69885aa57
parent0cf911b158fa8a0a8b81623a11dcd73ab9b7d8b4
bdi: initialize ->ra_pages and ->io_pages in bdi_init

Set up a readahead size by default, as very few users have a good
reason to change it.  This means code, ecryptfs, and orangefs now
set up the values while they were previously missing it, while ubifs,
mtd and vboxsf manually set it to 0 to avoid readahead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: David Sterba <dsterba@suse.com> [btrfs]
Acked-by: Richard Weinberger <richard@nod.at> [ubifs, mtd]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
drivers/mtd/mtdcore.c
fs/9p/vfs_super.c
fs/afs/super.c
fs/btrfs/disk-io.c
fs/fuse/inode.c
fs/nfs/super.c
fs/ubifs/super.c
fs/vboxsf/super.c
mm/backing-dev.c