[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150510.191851.414324528131774160.davem@davemloft.net>
Date: Sun, 10 May 2015 19:18:51 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: alexander.h.duyck@...hat.com
Cc: netdev@...r.kernel.org, linux-mm@...ck.org,
akpm@...ux-foundation.org, eric.dumazet@...il.com
Subject: Re: [PATCH 01/10] net: Use cached copy of pfmemalloc to avoid
accessing page
From: Alexander Duyck <alexander.h.duyck@...hat.com>
Date: Wed, 06 May 2015 21:11:40 -0700
> + /* use OR instead of assignment to avoid clearing of bits in mask */
> + if (pfmemalloc)
> + skb->pfmemalloc = 1;
> + skb->head_frag = 1;
...
> + /* use OR instead of assignment to avoid clearing of bits in mask */
> + if (nc->pfmemalloc)
> + skb->pfmemalloc = 1;
> + skb->head_frag = 1;
Maybe make these two cases more consistent by either accessing
nc->pfmemalloc or using a local variable in both cases.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists