|
@@ -330,7 +330,7 @@ void truncate_inode_pages_range(struct address_space *mapping,
|
|
else
|
|
else
|
|
end = (lend + 1) >> PAGE_SHIFT;
|
|
end = (lend + 1) >> PAGE_SHIFT;
|
|
|
|
|
|
- pagevec_init(&pvec, 0);
|
|
|
|
|
|
+ pagevec_init(&pvec);
|
|
index = start;
|
|
index = start;
|
|
while (index < end && pagevec_lookup_entries(&pvec, mapping, index,
|
|
while (index < end && pagevec_lookup_entries(&pvec, mapping, index,
|
|
min(end - index, (pgoff_t)PAGEVEC_SIZE),
|
|
min(end - index, (pgoff_t)PAGEVEC_SIZE),
|
|
@@ -342,7 +342,7 @@ void truncate_inode_pages_range(struct address_space *mapping,
|
|
*/
|
|
*/
|
|
struct pagevec locked_pvec;
|
|
struct pagevec locked_pvec;
|
|
|
|
|
|
- pagevec_init(&locked_pvec, 0);
|
|
|
|
|
|
+ pagevec_init(&locked_pvec);
|
|
for (i = 0; i < pagevec_count(&pvec); i++) {
|
|
for (i = 0; i < pagevec_count(&pvec); i++) {
|
|
struct page *page = pvec.pages[i];
|
|
struct page *page = pvec.pages[i];
|
|
|
|
|
|
@@ -553,7 +553,7 @@ unsigned long invalidate_mapping_pages(struct address_space *mapping,
|
|
unsigned long count = 0;
|
|
unsigned long count = 0;
|
|
int i;
|
|
int i;
|
|
|
|
|
|
- pagevec_init(&pvec, 0);
|
|
|
|
|
|
+ pagevec_init(&pvec);
|
|
while (index <= end && pagevec_lookup_entries(&pvec, mapping, index,
|
|
while (index <= end && pagevec_lookup_entries(&pvec, mapping, index,
|
|
min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1,
|
|
min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1,
|
|
indices)) {
|
|
indices)) {
|
|
@@ -683,7 +683,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
|
|
if (mapping->nrpages == 0 && mapping->nrexceptional == 0)
|
|
if (mapping->nrpages == 0 && mapping->nrexceptional == 0)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
- pagevec_init(&pvec, 0);
|
|
|
|
|
|
+ pagevec_init(&pvec);
|
|
index = start;
|
|
index = start;
|
|
while (index <= end && pagevec_lookup_entries(&pvec, mapping, index,
|
|
while (index <= end && pagevec_lookup_entries(&pvec, mapping, index,
|
|
min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1,
|
|
min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1,
|