Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
}
if (*opened & FILE_CREATED)
fsnotify_create(dir, dentry);
- if (!dentry->d_inode) {
- WARN_ON(*opened & FILE_CREATED);
- if (create_error) {
- error = create_error;
- goto out;
- }
- }
goto looked_up;
}
if (IS_ERR(dentry))
return PTR_ERR(dentry);
}
+looked_up:
if (create_error && !dentry->d_inode) {
error = create_error;
goto out;
}
-looked_up:
path->dentry = dentry;
path->mnt = nd->path.mnt;
return 1;