# Enable SMP by default... the world is going multicore and so are we..
[linux-2.6.git] / mm / filemap_xip.c
index fb957bf..902916d 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/module.h>
 #include <linux/uio.h>
 #include <linux/rmap.h>
-#include <linux/vs_base.h>
 #include <linux/vs_memory.h>
 #include <asm/tlbflush.h>
 #include "filemap.h"
@@ -185,7 +184,7 @@ __xip_unmap (struct address_space * mapping,
                address = vma->vm_start +
                        ((pgoff - vma->vm_pgoff) << PAGE_SHIFT);
                BUG_ON(address < vma->vm_start || address >= vma->vm_end);
-               page = ZERO_PAGE(address);
+               page = ZERO_PAGE(0);
                pte = page_check_address(page, mm, address, &ptl);
                if (pte) {
                        /* Nuke the page table entry. */
@@ -248,7 +247,7 @@ xip_file_nopage(struct vm_area_struct * area,
                __xip_unmap(mapping, pgoff);
        } else {
                /* not shared and writable, use ZERO_PAGE() */
-               page = ZERO_PAGE(address);
+               page = ZERO_PAGE(0);
        }
 
 out:
@@ -381,7 +380,7 @@ xip_file_write(struct file *filp, const char __user *buf, size_t len,
        if (count == 0)
                goto out_backing;
 
-       ret = remove_suid(filp->f_dentry);
+       ret = remove_suid(filp->f_path.dentry);
        if (ret)
                goto out_backing;