Sridhar Samudrala wrote: > The only reason i made these macros is that i would expect this to a compile > time configurable option so that there is zero overhead for regular users. > > #ifdef CONFIG_CRIT_SOCKET > #define SK_CRIT_ALLOC(sk, flags) ((sk->sk_allocation & __GFP_CRITICAL) | > flags) > #define CRIT_ALLOC(flags) (__GFP_CRITICAL | flags) > #else > #define SK_CRIT_ALLOC(sk, flags) flags > #define CRIT_ALLOC(flags) flags > #endif
Oh, that's much simpler to achieve: #ifdef CONFIG_CRIT_SOCKET #define __GFP_CRITICAL_SOCKET __GFP_CRITICAL #else #define __GFP_CRITICAL_SOCKET 0 #endif Maybe we can get better naming here, but you get the point, I think. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html