Lines Matching refs:bp

63 	if (bitmap->bp[page].hijacked) /* it's hijacked, don't try to alloc */  in bitmap_checkpage()
66 if (bitmap->bp[page].map) /* page is already allocated, just return */ in bitmap_checkpage()
95 if (!bitmap->bp[page].map) in bitmap_checkpage()
96 bitmap->bp[page].hijacked = 1; in bitmap_checkpage()
97 } else if (bitmap->bp[page].map || in bitmap_checkpage()
98 bitmap->bp[page].hijacked) { in bitmap_checkpage()
106 bitmap->bp[page].map = mappage; in bitmap_checkpage()
119 if (bitmap->bp[page].count) /* page is still busy */ in bitmap_checkfree()
124 if (bitmap->bp[page].hijacked) { /* page was hijacked, undo this now */ in bitmap_checkfree()
125 bitmap->bp[page].hijacked = 0; in bitmap_checkfree()
126 bitmap->bp[page].map = NULL; in bitmap_checkfree()
129 ptr = bitmap->bp[page].map; in bitmap_checkfree()
130 bitmap->bp[page].map = NULL; in bitmap_checkfree()
1170 bitmap->bp[page].count += inc; in bitmap_count_page()
1178 struct bitmap_page *bp = &bitmap->bp[page]; in bitmap_set_pending() local
1180 if (!bp->pending) in bitmap_set_pending()
1181 bp->pending = 1; in bitmap_set_pending()
1258 if (!counts->bp[j >> PAGE_COUNTER_SHIFT].pending) { in bitmap_daemon_work()
1262 counts->bp[j >> PAGE_COUNTER_SHIFT].pending = 0; in bitmap_daemon_work()
1332 if (bitmap->bp[page].hijacked || in bitmap_get_counter()
1333 bitmap->bp[page].map == NULL) in bitmap_get_counter()
1345 if (bitmap->bp[page].hijacked) { /* hijacked pointer */ in bitmap_get_counter()
1350 &bitmap->bp[page].map)[hi]; in bitmap_get_counter()
1353 &(bitmap->bp[page].map[pageoff]); in bitmap_get_counter()
1677 struct bitmap_page *bp; in bitmap_free() local
1693 bp = bitmap->counts.bp; in bitmap_free()
1698 if (bp) /* deallocate the page memory */ in bitmap_free()
1700 if (bp[k].map && !bp[k].hijacked) in bitmap_free()
1701 kfree(bp[k].map); in bitmap_free()
1702 kfree(bp); in bitmap_free()
2026 bitmap->counts.bp = new_bp; in bitmap_resize()