/* This is called from dput() when d_count is going to 0.  */
static int nfs_dentry_delete(struct dentry *dentry)
/* This is called from dput() when d_count is going to 0.  */
static int nfs_dentry_delete(struct dentry *dentry)
{
	dfprintk(VFS, "NFS: dentry_delete(%s/%s, %x)\n",
		dentry->d_parent->d_name.name, dentry->d_name.name,
		dentry->d_flags);
	if (dentry->d_inode != NULL && NFS_STALE(dentry->d_inode))
		return 1;
	if (dentry->d_flags & DCACHE_NFSFS_RENAMED) {
		return 1;
	}
	if (!(dentry->d_sb->s_flags & MS_ACTIVE)) {
		return 1;
	}
	return 0;
}