X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=mm%2Fswap.c;h=a65eff8a517af30716ffb863b9866098abeccc3d;hb=60347f6716aa49831ac311e04d77ccdc50dc024a;hp=d034b2128d2b09d5182e724a4e655a97804803d0;hpb=92d15c2ccbb3e31a3fc71ad28fdb55e1319383c0;p=karo-tx-linux.git diff --git a/mm/swap.c b/mm/swap.c index d034b2128d2b..a65eff8a517a 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -28,6 +28,7 @@ #include #include #include +#include /* How many pages do we try to swap or page in/out together? */ int page_cluster; @@ -547,6 +548,10 @@ void __init swap_setup(void) { unsigned long megs = num_physpages >> (20 - PAGE_SHIFT); +#ifdef CONFIG_SWAP + bdi_init(swapper_space.backing_dev_info); +#endif + /* Use a smaller cluster for small-memory machines */ if (megs < 16) page_cluster = 2;