don't pass nameidata to vfs_create() from ecryptfs_create()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 26 Jun 2011 01:08:31 +0000 (21:08 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Jul 2011 05:43:54 +0000 (01:43 -0400)
commitbf6c7f6c7bd0ea779757d35b5fdc9f9157f056b3
treeaed90f298856f286f84af6774ea30ade62c95294
parent8a5e929dd2e05ab4d3d89f58c5e8fca596af8f3a
don't pass nameidata to vfs_create() from ecryptfs_create()

Instead of playing with removal of LOOKUP_OPEN, mangling (and
restoring) nd->path, just pass NULL to vfs_create().  The whole
point of what's being done there is to suppress any attempts
to open file by underlying fs, which is what nd == NULL indicates.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ecryptfs/inode.c