From: Christoph Hellwig Date: Mon, 11 Aug 2008 13:48:57 +0000 (+0200) Subject: [PATCH] new helper: d_obtain_alias X-Git-Tag: v2.6.28-rc1~24^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ea3ada2955e4519befa98ff55dd62d6dfbd1705;p=pandora-kernel.git [PATCH] new helper: d_obtain_alias The calling conventions of d_alloc_anon are rather unfortunate for all users, and it's name is not very descriptive either. Add d_obtain_alias as a new exported helper that drops the inode reference in the failure case, too and allows to pass-through NULL pointers and inodes to allow for tail-calls in the export operations. Incidentally this helper already existed as a private function in libfs.c as exportfs_d_alloc so kill that one and switch the callers to d_obtain_alias. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro --- Reading git-diff-tree failed