• David Howells's avatar
    rxrpc: Fix use of changed alignment param to page_frag_alloc_align() · 6b253646
    David Howells authored
    Commit 411c5f36 ("mm/page_alloc: modify page_frag_alloc_align() to
    accept align as an argument") changed the way page_frag_alloc_align()
    worked, but it didn't fix AF_RXRPC as that use of that allocator function
    hadn't been merged yet at the time.  Now, when the AFS filesystem is used,
    this results in:
    
      WARNING: CPU: 4 PID: 379 at include/linux/gfp.h:323 rxrpc_alloc_data_txbuf+0x9d/0x2b0 [rxrpc]
    
    Fix this by using __page_frag_alloc_align() instead.
    
    Note that it might be better to use an order-based alignment rather than a
    mask-based alignment.
    
    Fixes: 49489bb0 ("rxrpc: Do zerocopy using MSG_SPLICE_PAGES and page frags")
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    Reported-by: default avatarMarc Dionne <marc.dionne@auristor.com>
    cc: Yunsheng Lin <linyunsheng@huawei.com>
    cc: Alexander Duyck <alexander.duyck@gmail.com>
    cc: Michael S. Tsirkin <mst@redhat.com>
    cc: "David S. Miller" <davem@davemloft.net>
    cc: Eric Dumazet <edumazet@google.com>
    cc: Jakub Kicinski <kuba@kernel.org>
    cc: Paolo Abeni <pabeni@redhat.com>
    cc: linux-afs@lists.infradead.org
    cc: netdev@vger.kernel.org
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    6b253646
txbuf.c 6.13 KB