From: Linus Torvalds Date: Thu, 10 May 2012 18:06:18 +0000 (-0700) Subject: vfs: remove unnecessary d_unhashed() check from __d_lookup_rcu X-Git-Tag: v3.5-rc1~192^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c01a529b861ba97c7d78368e6a5d4d42e946f75;p=pandora-kernel.git vfs: remove unnecessary d_unhashed() check from __d_lookup_rcu The check for d_unhashed() is not strictly incorrect, but at the same time it is also not sensible. The actual dentry removal from the dentry hash chains is totally asynchronous to the __d_lookup_rcu() logic, and we depend on __d_drop() updating the sequence number to invalidate any lookup of an unhashed dentry. So checking d_unhashed() is not incorrect, but it's not useful either: the code has to work correctly even without it. So just remove it. Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed