[PATCH] remove duplicate get_dentry functions in various places