diff --git a/net/core/page_pool.c b/net/core/page_pool.c index a17eb7ea1ea6..00d6406c3546 100644 --- a/net/core/page_pool.c +++ b/net/core/page_pool.c @@ -705,8 +705,10 @@ struct page *page_pool_alloc_frag(struct page_pool *pool, if (page && *offset + size > max_size) { page = page_pool_drain_frag(pool, page); - if (page) + if (page) { + alloc_stat_inc(pool, fast); goto frag_reset; + } } if (!page) { @@ -728,6 +730,7 @@ frag_reset: pool->frag_users++; pool->frag_offset = *offset + size; + alloc_stat_inc(pool, fast); return page; } EXPORT_SYMBOL(page_pool_alloc_frag);