diff options
| author | Jens Axboe <[email protected]> | 2020-08-31 17:20:02 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-09-01 14:00:14 +0000 |
| commit | de1b0ee490eafdf65fac9eef9925391a8369f2dc (patch) | |
| tree | 3fe4baf216fe5501b96d995b5d3b9603a2d1ec7e /net/switchdev/switchdev.c | |
| parent | Merge branch 'nvme-5.9-rc' of git://git.infradead.org/nvme into block-5.9 (diff) | |
| download | kernel-de1b0ee490eafdf65fac9eef9925391a8369f2dc.tar.gz kernel-de1b0ee490eafdf65fac9eef9925391a8369f2dc.zip | |
block: ensure bdi->io_pages is always initialized
If a driver leaves the limit settings as the defaults, then we don't
initialize bdi->io_pages. This means that file systems may need to
work around bdi->io_pages == 0, which is somewhat messy.
Initialize the default value just like we do for ->ra_pages.
Cc: [email protected]
Fixes: 9491ae4aade6 ("mm: don't cap request size based on read-ahead setting")
Reported-by: OGAWA Hirofumi <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
