Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions homa_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ void __user *homa_pool_get_buffer(struct homa_rpc *rpc, int offset,
*/
int homa_pool_free_bufs(struct homa_pool *pool, int num_buffers, u32 *buffers)
{
#ifndef __UPSTREAM__ /* See strip.py */
int freed_pages = 0;
#endif /* See strip.py */
int i, result = 0;
bool locked = false;

Expand Down Expand Up @@ -409,7 +411,9 @@ int homa_pool_free_bufs(struct homa_pool *pool, int num_buffers, u32 *buffers)
locked = true;
}
homa_pool_push_free(pool, bpage_index);
#ifndef __UPSTREAM__ /* See strip.py */
freed_pages++;
#endif /* See strip.py */
}
}
if (locked) {
Expand Down