Skip to content

Commit

Permalink
vchiq_arm: do not use page_cache_release(page) macro (#1403)
Browse files Browse the repository at this point in the history
This macro is gone since 1fa64f1.

Signed-off-by: Slawomir Stepien <[email protected]>
  • Loading branch information
dienet authored and popcornmix committed May 16, 2016
1 parent 4bb1e5d commit 1c49050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type,
while (actual_pages > 0)
{
actual_pages--;
page_cache_release(pages[actual_pages]);
put_page(pages[actual_pages]);
}
kfree(pagelist);
if (actual_pages == 0)
Expand Down Expand Up @@ -578,7 +578,7 @@ free_pagelist(PAGELIST_T *pagelist, int actual)
offset = 0;
set_page_dirty(pg);
}
page_cache_release(pg);
put_page(pg);
}
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/misc/vc04_services/interface/vchiq_arm/vchiq_arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ dump_phys_mem(void *virt_addr, uint32_t num_bytes)
kunmap(page);

for (page_idx = 0; page_idx < num_pages; page_idx++)
page_cache_release(pages[page_idx]);
put_page(pages[page_idx]);

kfree(pages);
}
Expand Down

0 comments on commit 1c49050

Please sign in to comment.