readahead: combine file_ra_state.prev_index/prev_offset into prev_pos
[linux-2.6.git] / fs / ext3 / dir.c
index c00723a..c2c3491 100644 (file)
@@ -143,7 +143,7 @@ static int ext3_readdir(struct file * filp,
                                        sb->s_bdev->bd_inode->i_mapping,
                                        &filp->f_ra, filp,
                                        index, 1);
-                       filp->f_ra.prev_index = index;
+                       filp->f_ra.prev_pos = (loff_t)index << PAGE_CACHE_SHIFT;
                        bh = ext3_bread(NULL, inode, blk, 0, &err);
                }