netns: remove BUG_ONs from net_generic()
authorDenys Vlasenko <[email protected]>
Fri, 17 Apr 2015 17:06:30 +0000 (19:06 +0200)
committerDavid S. Miller <[email protected]>
Fri, 17 Apr 2015 19:21:48 +0000 (15:21 -0400)
commit2591ffd3085e34a231480efe8f1cac83ebb81725
tree236ca367e864bfa6e0cabe3afad6d5e8e83826d6
parent2c1539597419df6dfeb8ed774d60198b5830b8f7
netns: remove BUG_ONs from net_generic()

This inline has ~500 callsites.

On 04/14/2015 08:37 PM, David Miller wrote:
> That BUG_ON() was added 7 years ago, and I don't remember it ever
> triggering or helping us diagnose something, so just remove it and
> keep the function inlined.

On x86 allyesconfig build:

    text     data      bss       dec     hex filename
82447071 22255384 20627456 125329911 77861f7 vmlinux4
82441375 22255384 20627456 125324215 7784bb7 vmlinux5prime

Signed-off-by: Denys Vlasenko <[email protected]>
CC: Eric W. Biederman <[email protected]>
CC: David S. Miller <[email protected]>
CC: Jan Engelhardt <[email protected]>
CC: Jiri Pirko <[email protected]>
CC: [email protected]
CC: [email protected]
Signed-off-by: David S. Miller <[email protected]>
include/net/netns/generic.h