• Alexander Duyck's avatar
    fib_trie: Push tnode flushing down to inflate/halve · fc86a93b
    Alexander Duyck authored
    This change pushes the tnode freeing down into the inflate and halve
    functions.  It makes more sense here as we have a better grasp of what is
    going on and when a given cluster of nodes is ready to be freed.
    
    I believe this may address a bug in the freeing logic as well.  For some
    reason if the freelist got to a certain size we would call
    synchronize_rcu().  I'm assuming that what they meant to do is call
    synchronize_rcu() after they had handed off that much memory via
    call_rcu().  As such that is what I have updated the behavior to be.
    Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    fc86a93b
fib_trie.c 56 KB