X-Git-Url: http://pileus.org/git/?p=~andy%2Flinux;a=blobdiff_plain;f=mm%2Frmap.c;h=8fc049f9a5a6c5d511ac7a5ac0dd41c698ed99a3;hp=d9d42316a99a917ff6562c7cbc54dd50a085a1f6;hb=7e09e738afd21ef99f047425fc0b0c9be8b03254;hpb=3fb725c48b93c0a152174b6dbbc1029b5e734c7b diff --git a/mm/rmap.c b/mm/rmap.c index d9d42316a99..8fc049f9a5a 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -1360,8 +1360,9 @@ static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount, } static int try_to_unmap_nonlinear(struct page *page, - struct address_space *mapping, struct vm_area_struct *vma) + struct address_space *mapping, void *arg) { + struct vm_area_struct *vma; int ret = SWAP_AGAIN; unsigned long cursor; unsigned long max_nl_cursor = 0; @@ -1663,7 +1664,7 @@ static int rmap_walk_file(struct page *page, struct rmap_walk_control *rwc) if (list_empty(&mapping->i_mmap_nonlinear)) goto done; - ret = rwc->file_nonlinear(page, mapping, vma); + ret = rwc->file_nonlinear(page, mapping, rwc->arg); done: mutex_unlock(&mapping->i_mmap_mutex);