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()
1171 bitmap->bp[page].count += inc; in bitmap_count_page()
1179 struct bitmap_page *bp = &bitmap->bp[page]; in bitmap_set_pending() local
1181 if (!bp->pending) in bitmap_set_pending()
1182 bp->pending = 1; in bitmap_set_pending()
1259 if (!counts->bp[j >> PAGE_COUNTER_SHIFT].pending) { in bitmap_daemon_work()
1263 counts->bp[j >> PAGE_COUNTER_SHIFT].pending = 0; in bitmap_daemon_work()
1333 if (bitmap->bp[page].hijacked || in bitmap_get_counter()
1334 bitmap->bp[page].map == NULL) in bitmap_get_counter()
1346 if (bitmap->bp[page].hijacked) { /* hijacked pointer */ in bitmap_get_counter()
1351 &bitmap->bp[page].map)[hi]; in bitmap_get_counter()
1354 &(bitmap->bp[page].map[pageoff]); in bitmap_get_counter()
1678 struct bitmap_page *bp; in bitmap_free() local
1694 bp = bitmap->counts.bp; in bitmap_free()
1699 if (bp) /* deallocate the page memory */ in bitmap_free()
1701 if (bp[k].map && !bp[k].hijacked) in bitmap_free()
1702 kfree(bp[k].map); in bitmap_free()
1703 kfree(bp); in bitmap_free()
2031 bitmap->counts.bp = new_bp; in bitmap_resize()