summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-12-11 18:10:06 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2012-12-21 00:50:02 +0100
commit1ac12b4b6d707937f9de6d09622823b2fd0c93ef (patch)
tree7ac3f66abfcce206615abe9effd9e55f26c117a9 /arch
parentvfs: fix readlinkat to retry on ESTALE (diff)
downloadlinux-1ac12b4b6d707937f9de6d09622823b2fd0c93ef.tar.xz
linux-1ac12b4b6d707937f9de6d09622823b2fd0c93ef.zip
vfs: turn is_dir argument to kern_path_create into a lookup_flags arg
Where we can pass in LOOKUP_DIRECTORY or LOOKUP_REVAL. Any other flags passed in here are currently ignored. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/cell/spufs/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/syscalls.c b/arch/powerpc/platforms/cell/spufs/syscalls.c
index 5b7d8ffbf890..baee994fe810 100644
--- a/arch/powerpc/platforms/cell/spufs/syscalls.c
+++ b/arch/powerpc/platforms/cell/spufs/syscalls.c
@@ -66,7 +66,7 @@ static long do_spu_create(const char __user *pathname, unsigned int flags,
struct dentry *dentry;
int ret;
- dentry = user_path_create(AT_FDCWD, pathname, &path, 1);
+ dentry = user_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY);
ret = PTR_ERR(dentry);
if (!IS_ERR(dentry)) {
ret = spufs_create(&path, dentry, flags, mode, neighbor);