From: Jeremy Kerr Date: Mon, 29 Jun 2009 06:31:58 +0000 (+0800) Subject: fs: allow d_instantiate to be called with negative parent dentry X-Git-Tag: v2.6.31-rc2~65^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6ce3066010a21bde961d8f8cefe0b69cae78a0f;p=pandora-kernel.git fs: allow d_instantiate to be called with negative parent dentry The new fsnotify infrastructure (starting at 90586523) 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 Signed-off-by: Eric Paris --- Reading git-diff-tree failed