We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e86a9e6 commit a3a1a6eCopy full SHA for a3a1a6e
mm/madvise.c
@@ -222,15 +222,14 @@ static long madvise_willneed(struct vm_area_struct *vma,
222
{
223
struct file *file = vma->vm_file;
224
225
+ *prev = vma;
226
#ifdef CONFIG_SWAP
227
if (!file) {
- *prev = vma;
228
force_swapin_readahead(vma, start, end);
229
return 0;
230
}
231
232
if (shmem_mapping(file->f_mapping)) {
233
234
force_shm_swapin_readahead(vma, start, end,
235
file->f_mapping);
236
@@ -245,7 +244,6 @@ static long madvise_willneed(struct vm_area_struct *vma,
245
244
246
247
248
249
start = ((start - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff;
250
if (end > vma->vm_end)
251
end = vma->vm_end;
0 commit comments