]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/utimes.c
IB/ipath: Fix sparse warning about pointer signedness
[linux-2.6-omap-h63xx.git] / fs / utimes.c
index b9912ecbee241231ca0b776d9131af1e2643d80a..b18da9c0b97f5f03185b13678ac0ca16932d9c70 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/sched.h>
 #include <linux/stat.h>
 #include <linux/utime.h>
+#include <linux/syscalls.h>
 #include <asm/uaccess.h>
 #include <asm/unistd.h>
 
@@ -83,7 +84,7 @@ long do_utimes(int dfd, char __user *filename, struct timespec *times, int flags
                if (error)
                        goto out;
 
-               dentry = nd.dentry;
+               dentry = nd.path.dentry;
        }
 
        inode = dentry->d_inode;
@@ -137,7 +138,7 @@ dput_and_out:
        if (f)
                fput(f);
        else
-               path_release(&nd);
+               path_put(&nd.path);
 out:
        return error;
 }