File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -493,10 +493,9 @@ static int squashfs_read_folio(struct file *file, struct folio *folio)
493
493
return res ;
494
494
}
495
495
496
- static int squashfs_readahead_fragment (struct page * * page ,
496
+ static int squashfs_readahead_fragment (struct inode * inode , struct page * * page ,
497
497
unsigned int pages , unsigned int expected , loff_t start )
498
498
{
499
- struct inode * inode = page [0 ]-> mapping -> host ;
500
499
struct squashfs_cache_entry * buffer = squashfs_get_fragment (inode -> i_sb ,
501
500
squashfs_i (inode )-> fragment_block ,
502
501
squashfs_i (inode )-> fragment_size );
@@ -605,8 +604,8 @@ static void squashfs_readahead(struct readahead_control *ractl)
605
604
606
605
if (start >> msblk -> block_log == file_end &&
607
606
squashfs_i (inode )-> fragment_block != SQUASHFS_INVALID_BLK ) {
608
- res = squashfs_readahead_fragment (pages , nr_pages ,
609
- expected , start );
607
+ res = squashfs_readahead_fragment (inode , pages ,
608
+ nr_pages , expected , start );
610
609
if (res )
611
610
goto skip_pages ;
612
611
continue ;
You can’t perform that action at this time.
0 commit comments