/* Delete all entries from the search block ID list that belong to tape blocks equal or higher than the given number.  */
static void tape_34xx_delete_sbid_from(struct tape_device *, int)
/* Delete all entries from the search block ID list that belong to tape blocks equal or higher than the given number.  */
static void tape_34xx_delete_sbid_from(struct tape_device *, int)
{
	struct list_head *	sbid_list;
	struct tape_34xx_sbid *	sbid;
	struct list_head *	l;
	struct list_head *	n;
	sbid_list = (struct list_head *) device->discdata;
	if (!sbid_list)
		return;
	list_for_each_safe(l, n, sbid_list) {
		sbid = list_entry(l, struct tape_34xx_sbid, list);
		if (sbid->bid.block >= from) {
			DBF_LH(4, "Delete sbid %d:%03d@%05d\n",
				sbid->bid.wrap,
				sbid->bid.segment,
				sbid->bid.block
			);
			list_del(l);
			kfree(sbid);
		}
	}
}