/* This is the callback from dput() when d_count is going to 0. We use this to unhash dentries with bad inodes.  */
static int coda_dentry_delete(struct dentry *)
/* This is the callback from dput() when d_count is going to 0. We use this to unhash dentries with bad inodes.  */
static int coda_dentry_delete(struct dentry *)
{
	int flags;
	if (!dentry->d_inode) 
		return 0;
	flags = (ITOC(dentry->d_inode)->c_flags) & C_PURGE;
	if (is_bad_inode(dentry->d_inode) || flags) {
		return 1;
	}
	return 0;
}