/* unset all bits in union bitmap (bmap) that do not exist in share (from successful OPEN_DOWNGRADE)  */
static void reset_union_bmap_access(unsigned long access, unsigned long *bmap)
/* unset all bits in union bitmap (bmap) that do not exist in share (from successful OPEN_DOWNGRADE)  */
static void reset_union_bmap_access(unsigned long access, unsigned long *bmap)
{
	int i;
	for (i = 1; i < 4; i++) {
		if ((i & access) != i)
			__clear_bit(i, bmap);
	}
}