]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ext4/dir.c
readahead: split ondemand readahead interface into two functions
[linux-2.6-omap-h63xx.git] / fs / ext4 / dir.c
index 0a872a09fed88db9d3cb121fcfca3f86a6796d1b..3ab01c04e00c55fd07470a7de9a85d1cbf398815 100644 (file)
@@ -138,10 +138,10 @@ static int ext4_readdir(struct file * filp,
                        pgoff_t index = map_bh.b_blocknr >>
                                        (PAGE_CACHE_SHIFT - inode->i_blkbits);
                        if (!ra_has_index(&filp->f_ra, index))
-                               page_cache_readahead_ondemand(
+                               page_cache_sync_readahead(
                                        sb->s_bdev->bd_inode->i_mapping,
                                        &filp->f_ra, filp,
-                                       NULL, index, 1);
+                                       index, 1);
                        filp->f_ra.prev_index = index;
                        bh = ext4_bread(NULL, inode, blk, 0, &err);
                }