mm: bdi init hooks

provide BDI constructor/destructor hooks

[[email protected]: compile fix]
Signed-off-by: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Peter Zijlstra 2007-10-16 23:25:46 -07:00 • committed by Linus Torvalds
commit e0bf68ddec
19 changed files with 131 additions and 7 deletions

View file

@ -233,6 +233,12 @@ unsigned long max_sane_readahead(unsigned long nr)
+ node_page_state(numa_node_id(), NR_FREE_PAGES)) / 2);
}
static int __init readahead_init(void)
{
return bdi_init(&default_backing_dev_info);
}
subsys_initcall(readahead_init);
/*
* Submit IO for the read-ahead request in file_ra_state.
*/