writeback: implement and use inode_congested()
[linux-2.6-block.git] / mm / readahead.c
index 935675844b2ee45fb29447c7098be1d4869f2c65..60cd846a9a4401f73a6a51539507ecc22fb308d4 100644 (file)
@@ -541,7 +541,7 @@ page_cache_async_readahead(struct address_space *mapping,
        /*
         * Defer asynchronous read-ahead on IO congestion.
         */
-       if (bdi_read_congested(inode_to_bdi(mapping->host)))
+       if (inode_read_congested(mapping->host))
                return;
 
        /* do read-ahead */