tmpfs: convert mem_cgroup shmem to radix-swap
[linux-2.6.git] / mm / madvise.c
index bbac126..74bf193 100644 (file)
@@ -73,7 +73,7 @@ static long madvise_behavior(struct vm_area_struct * vma,
                break;
        case MADV_HUGEPAGE:
        case MADV_NOHUGEPAGE:
-               error = hugepage_madvise(&new_flags, behavior);
+               error = hugepage_madvise(vma, &new_flags, behavior);
                if (error)
                        goto out;
                break;
@@ -218,7 +218,7 @@ static long madvise_remove(struct vm_area_struct *vma,
        endoff = (loff_t)(end - vma->vm_start - 1)
                        + ((loff_t)vma->vm_pgoff << PAGE_SHIFT);
 
-       /* vmtruncate_range needs to take i_mutex and i_alloc_sem */
+       /* vmtruncate_range needs to take i_mutex */
        up_read(&current->mm->mmap_sem);
        error = vmtruncate_range(mapping->host, offset, endoff);
        down_read(&current->mm->mmap_sem);