diff options
| author | Yunsheng Lin <[email protected]> | 2024-10-28 11:53:39 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-11-11 18:56:27 +0000 |
| commit | 3d18dfe69ce46f106af327736d2261d7e3ee81c0 (patch) | |
| tree | 508012ac2ca4270f28b0eee0cceed9959c589dfd /net/rxrpc/local_object.c | |
| parent | mm: page_frag: use initial zero offset for page_frag_alloc_align() (diff) | |
| download | kernel-3d18dfe69ce46f106af327736d2261d7e3ee81c0.tar.gz kernel-3d18dfe69ce46f106af327736d2261d7e3ee81c0.zip | |
mm: page_frag: avoid caller accessing 'page_frag_cache' directly
Use appropriate frag_page API instead of caller accessing
'page_frag_cache' directly.
CC: Andrew Morton <[email protected]>
CC: Linux-MM <[email protected]>
Signed-off-by: Yunsheng Lin <[email protected]>
Reviewed-by: Alexander Duyck <[email protected]>
Acked-by: Chuck Lever <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/rxrpc/local_object.c')
| -rw-r--r-- | net/rxrpc/local_object.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/rxrpc/local_object.c b/net/rxrpc/local_object.c index f9623ace2201..2792d2304605 100644 --- a/net/rxrpc/local_object.c +++ b/net/rxrpc/local_object.c @@ -452,9 +452,7 @@ void rxrpc_destroy_local(struct rxrpc_local *local) #endif rxrpc_purge_queue(&local->rx_queue); rxrpc_purge_client_connections(local); - if (local->tx_alloc.va) - __page_frag_cache_drain(virt_to_page(local->tx_alloc.va), - local->tx_alloc.pagecnt_bias); + page_frag_cache_drain(&local->tx_alloc); } /* |
