diff options
author | Christoph Hellwig <hch@lst.de> | 2015-01-14 04:42:41 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-20 16:05:38 -0500 |
commit | df0ce26cb4ee8bc233d50213b97213532aff0a3c (patch) | |
tree | bfc9ae26255daa5bd5d633520151223551faf016 /mm/backing-dev.c | |
parent | c4db59d31e39ea067c32163ac961e9c80198fd37 (diff) |
fs: remove default_backing_dev_info
Now that default_backing_dev_info is not used for writeback purposes we can
git rid of it easily:
- instead of using it's name for tracing unregistered bdi we just use
"unknown"
- btrfs and ceph can just assign the default read ahead window themselves
like several other filesystems already do.
- we can assign noop_backing_dev_info as the default one in alloc_super.
All filesystems already either assigned their own or
noop_backing_dev_info.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'mm/backing-dev.c')
-rw-r--r-- | mm/backing-dev.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 1725adb242e0..7690ec77c722 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c | |||
@@ -14,12 +14,6 @@ | |||
14 | 14 | ||
15 | static atomic_long_t bdi_seq = ATOMIC_LONG_INIT(0); | 15 | static atomic_long_t bdi_seq = ATOMIC_LONG_INIT(0); |
16 | 16 | ||
17 | struct backing_dev_info default_backing_dev_info = { | ||
18 | .name = "default", | ||
19 | .ra_pages = VM_MAX_READAHEAD * 1024 / PAGE_CACHE_SIZE, | ||
20 | }; | ||
21 | EXPORT_SYMBOL_GPL(default_backing_dev_info); | ||
22 | |||
23 | struct backing_dev_info noop_backing_dev_info = { | 17 | struct backing_dev_info noop_backing_dev_info = { |
24 | .name = "noop", | 18 | .name = "noop", |
25 | .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK, | 19 | .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK, |
@@ -250,9 +244,6 @@ static int __init default_bdi_init(void) | |||
250 | if (!bdi_wq) | 244 | if (!bdi_wq) |
251 | return -ENOMEM; | 245 | return -ENOMEM; |
252 | 246 | ||
253 | err = bdi_init(&default_backing_dev_info); | ||
254 | if (!err) | ||
255 | bdi_register(&default_backing_dev_info, NULL, "default"); | ||
256 | err = bdi_init(&noop_backing_dev_info); | 247 | err = bdi_init(&noop_backing_dev_info); |
257 | 248 | ||
258 | return err; | 249 | return err; |