Searched refs:persistent_gnt (Results 1 – 3 of 3) sorted by relevance
/drivers/block/xen-blkback/ |
D | blkback.c | 135 static inline bool persistent_gnt_timeout(struct persistent_gnt *persistent_gnt) in persistent_gnt_timeout() argument 137 return pgrant_timeout && (jiffies - persistent_gnt->last_used >= in persistent_gnt_timeout() 169 struct persistent_gnt *persistent_gnt) in add_persistent_gnt() argument 172 struct persistent_gnt *this; in add_persistent_gnt() 183 this = container_of(*new, struct persistent_gnt, node); in add_persistent_gnt() 186 if (persistent_gnt->gnt < this->gnt) in add_persistent_gnt() 188 else if (persistent_gnt->gnt > this->gnt) in add_persistent_gnt() 196 persistent_gnt->active = true; in add_persistent_gnt() 198 rb_link_node(&(persistent_gnt->node), parent, new); in add_persistent_gnt() 199 rb_insert_color(&(persistent_gnt->node), &ring->persistent_gnts); in add_persistent_gnt() [all …]
|
D | common.h | 241 struct persistent_gnt { struct 333 struct persistent_gnt *persistent_gnt; member
|
/drivers/block/ |
D | xen-blkfront.c | 1214 struct grant *persistent_gnt, *n; in blkif_free_ring() local 1234 list_for_each_entry_safe(persistent_gnt, n, in blkif_free_ring() 1236 list_del(&persistent_gnt->node); in blkif_free_ring() 1237 if (persistent_gnt->gref != GRANT_INVALID_REF) { in blkif_free_ring() 1238 gnttab_end_foreign_access(persistent_gnt->gref, in blkif_free_ring() 1243 __free_page(persistent_gnt->page); in blkif_free_ring() 1244 kfree(persistent_gnt); in blkif_free_ring() 1261 persistent_gnt = rinfo->shadow[i].grants_used[j]; in blkif_free_ring() 1262 gnttab_end_foreign_access(persistent_gnt->gref, 0, 0UL); in blkif_free_ring() 1264 __free_page(persistent_gnt->page); in blkif_free_ring() [all …]
|