From: Christoph Hellwig Date: Sun, 10 Oct 2010 09:36:30 +0000 (-0400) Subject: fsnotify: use dget_parent X-Git-Tag: v2.6.37-rc1~94^2~7 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d4eb36679adbdd75495e1bbfe7ac40e4ae41dea;p=pandora-kernel.git fsnotify: use dget_parent Use dget_parent instead of opencoding it. This simplifies the code, but more importanly prepares for the more complicated locking for a parent dget in the dcache scale patch series. It means we do grab a reference to the parent now if need to be watched, but not with the specified mask. If this turns out to be a problem we'll have to revisit it, but for now let's keep as much as possible dcache internals inside dcache.[ch]. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro --- Reading git-diff-tree failed