Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs: allow d_instantiate to be called with negative parent dentry
The new fsnotify infrastructure (starting at 9058652) causes an oops in spufs, where we populate a directory with files before instantiating the directory itself. The new changes seem to have introduced an assumption that a dentry's parent will be positive when instantiating. This change makes it once again possible to d_instantiate a dentry with a negative parent, and brings __fsnotify_d_instantiate() into line with inotify_d_instantiate(), which already has this NULL check. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Eric Paris <eparis@redhat.com>
- Loading branch information