/* Mark all dentries for 'parent' as invalid, forcing them to be re-read  */
void smb_invalidate_dircache_entries(struct dentry *parent)
/* Mark all dentries for 'parent' as invalid, forcing them to be re-read  */
void smb_invalidate_dircache_entries(struct dentry *parent)
{
	struct smb_sb_info *server = server_from_dentry(parent);
	struct list_head *next;
	struct dentry *dentry;
	spin_lock(&dcache_lock);
	next = parent->d_subdirs.next;
	while (next != &parent->d_subdirs) {
		dentry = list_entry(next, struct dentry, d_u.d_child);
		dentry->d_fsdata = NULL;
		smb_age_dentry(server, dentry);
		next = next->next;
	}
	spin_unlock(&dcache_lock);
}