Lines Matching refs:se
95 struct swap_extent *se; in discard_swap() local
98 list_for_each_entry(se, &si->extent_list, list) { in discard_swap()
99 sector_t start_block = se->start_block << (PAGE_SHIFT - 9); in discard_swap()
100 sector_t nr_blocks = (sector_t)se->nr_pages << (PAGE_SHIFT - 9); in discard_swap()
102 if (se->start_page == 0) { in discard_swap()
127 struct swap_extent *se = si->curr_swap_extent; in discard_swap_cluster() local
133 if (se->start_page <= start_page && in discard_swap_cluster()
134 start_page < se->start_page + se->nr_pages) { in discard_swap_cluster()
135 pgoff_t offset = start_page - se->start_page; in discard_swap_cluster()
136 sector_t start_block = se->start_block + offset; in discard_swap_cluster()
137 sector_t nr_blocks = se->nr_pages - offset; in discard_swap_cluster()
145 si->curr_swap_extent = se; in discard_swap_cluster()
154 lh = se->list.next; in discard_swap_cluster()
157 se = list_entry(lh, struct swap_extent, list); in discard_swap_cluster()
644 struct swap_extent *se; in swap_type_of() local
646 se = list_entry(sis->extent_list.next, in swap_type_of()
648 if (se->start_block == offset) { in swap_type_of()
1163 struct swap_extent *se = sis->curr_swap_extent; in map_swap_page() local
1164 struct swap_extent *start_se = se; in map_swap_page()
1169 if (se->start_page <= offset && in map_swap_page()
1170 offset < (se->start_page + se->nr_pages)) { in map_swap_page()
1171 return se->start_block + (offset - se->start_page); in map_swap_page()
1173 lh = se->list.next; in map_swap_page()
1176 se = list_entry(lh, struct swap_extent, list); in map_swap_page()
1177 sis->curr_swap_extent = se; in map_swap_page()
1178 BUG_ON(se == start_se); /* It *must* be present */ in map_swap_page()
1205 struct swap_extent *se; in destroy_swap_extents() local
1207 se = list_entry(sis->extent_list.next, in destroy_swap_extents()
1209 list_del(&se->list); in destroy_swap_extents()
1210 kfree(se); in destroy_swap_extents()
1224 struct swap_extent *se; in add_swap_extent() local
1230 se = list_entry(lh, struct swap_extent, list); in add_swap_extent()
1231 BUG_ON(se->start_page + se->nr_pages != start_page); in add_swap_extent()
1232 if (se->start_block + se->nr_pages == start_block) { in add_swap_extent()
1234 se->nr_pages += nr_pages; in add_swap_extent()
1242 new_se = kmalloc(sizeof(*se), GFP_KERNEL); in add_swap_extent()