Re: [PATCH] net: Disambiguate kernel message

From: Arun Sharma
Date: Tue Jan 31 2012 - 17:05:24 EST


On Tue, Jan 31, 2012 at 04:15:35PM -0500, David Miller wrote:
> >
> > shrug. That isn't currently used and
> > tcp_too_many_orphans and tcp_out_of_memory
> > could still be checked.
> >
> > I think the routine could be moved out-of-line.
>
> Indeed, and make the out-of-line combined routine (that does the test
> as well as the conditional logging) return a boolean that determines
> if the "if (too_many_orphans || out_of_socket_memory)" test should
> pass.

Updated patch below. No change in the size of .text
.rodata is a bit larger.

-Arun