truncate.c (b85e0effd3dcbf9118b896232f59526ab1a39a74) | truncate.c (d0823576bf4b8eafce1b56f98613465a0352a376) |
---|---|
1/* 2 * mm/truncate.c - code for taking down pages from address_spaces 3 * 4 * Copyright (C) 2002, Linus Torvalds 5 * 6 * 10Sep2002 Andrew Morton 7 * Initial version. 8 */ --- 255 unchanged lines hidden (view full) --- 264 cond_resched(); 265 if (!pagevec_lookup(&pvec, mapping, index, 266 min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1)) { 267 if (index == start) 268 break; 269 index = start; 270 continue; 271 } | 1/* 2 * mm/truncate.c - code for taking down pages from address_spaces 3 * 4 * Copyright (C) 2002, Linus Torvalds 5 * 6 * 10Sep2002 Andrew Morton 7 * Initial version. 8 */ --- 255 unchanged lines hidden (view full) --- 264 cond_resched(); 265 if (!pagevec_lookup(&pvec, mapping, index, 266 min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1)) { 267 if (index == start) 268 break; 269 index = start; 270 continue; 271 } |
272 if (pvec.pages[0]->index > end) { | 272 if (index == start && pvec.pages[0]->index > end) { |
273 pagevec_release(&pvec); 274 break; 275 } 276 mem_cgroup_uncharge_start(); 277 for (i = 0; i < pagevec_count(&pvec); i++) { 278 struct page *page = pvec.pages[i]; 279 280 /* We rely upon deletion not changing page->index */ --- 340 unchanged lines hidden --- | 273 pagevec_release(&pvec); 274 break; 275 } 276 mem_cgroup_uncharge_start(); 277 for (i = 0; i < pagevec_count(&pvec); i++) { 278 struct page *page = pvec.pages[i]; 279 280 /* We rely upon deletion not changing page->index */ --- 340 unchanged lines hidden --- |