Lines Matching refs:invalidate_counter
78 union invalidate_counter { union
107 static inline union invalidate_counter get_invalidate_counter(struct page_cache *cache, in get_invalidate_counter()
110 return (union invalidate_counter) { in get_invalidate_counter()
117 union invalidate_counter invalidate_counter) in set_invalidate_counter() argument
120 invalidate_counter.value); in set_invalidate_counter()
123 static inline bool search_pending(union invalidate_counter invalidate_counter) in search_pending() argument
125 return (invalidate_counter.counter & 1) != 0; in search_pending()
132 union invalidate_counter invalidate_counter = in begin_pending_search() local
135 invalidate_counter.page = physical_page; in begin_pending_search()
136 invalidate_counter.counter++; in begin_pending_search()
137 set_invalidate_counter(cache, zone_number, invalidate_counter); in begin_pending_search()
138 VDO_ASSERT_LOG_ONLY(search_pending(invalidate_counter), in begin_pending_search()
151 union invalidate_counter invalidate_counter; in end_pending_search() local
160 invalidate_counter = get_invalidate_counter(cache, zone_number); in end_pending_search()
161 VDO_ASSERT_LOG_ONLY(search_pending(invalidate_counter), in end_pending_search()
163 invalidate_counter.counter++; in end_pending_search()
164 set_invalidate_counter(cache, zone_number, invalidate_counter); in end_pending_search()
169 union invalidate_counter initial_counters[MAX_ZONES]; in wait_for_pending_searches()