Message ID | 11dbd8d715fab9c7fe8536552c18fcb44a36b849.1634933121.git.rgoldwyn@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Shared memory for shared extents | expand |
diff --git a/mm/readahead.c b/mm/readahead.c index d589f147f4c2..9f303a31f650 100644 --- a/mm/readahead.c +++ b/mm/readahead.c @@ -443,6 +443,9 @@ static void ondemand_readahead(struct readahead_control *ractl, unsigned long index = readahead_index(ractl); pgoff_t prev_index; + if (ractl->file) + bdi = inode_to_bdi(file_inode(ractl->file)); + /* * If the request exceeds the readahead window, allow the read to * be up to the optimal hardware IO size