summaryrefslogtreecommitdiff
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
authorJonathan Lemon <jonathan.lemon@gmail.com>2019-08-13 10:45:09 -0700
committerDavid S. Miller <davem@davemloft.net>2019-08-15 12:27:36 -0700
commit8d73f8f23e6b869b726cb01dd4747f56dc88660a (patch)
treea19e6d1e6829a6106b80e66a2440960cc2a164fa /net/tipc/socket.c
parent4b58c9b127f04bb3eea5a2a9ab8ef039b9fe9b71 (diff)
page_pool: fix logic in __page_pool_get_cached
__page_pool_get_cached() will return NULL when the ring is empty, even if there are pages present in the lookaside cache. It is also possible to refill the cache, and then return a NULL page. Restructure the logic so eliminate both cases. Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions