Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932841AbbLBP5O (ORCPT ); Wed, 2 Dec 2015 10:57:14 -0500 Received: from resqmta-ch2-12v.sys.comcast.net ([69.252.207.44]:35792 "EHLO resqmta-ch2-12v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755513AbbLBP5N (ORCPT ); Wed, 2 Dec 2015 10:57:13 -0500 Date: Wed, 2 Dec 2015 09:57:11 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@east.gentwo.org To: Geliang Tang cc: Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] mm/slab: use list_first_entry_or_null() In-Reply-To: <7e551749f5a50cef15a33320d6d33b9d0b0986bd.1449070964.git.geliangtang@163.com> Message-ID: References: <7e551749f5a50cef15a33320d6d33b9d0b0986bd.1449070964.git.geliangtang@163.com> Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 559 Lines: 14 On Wed, 2 Dec 2015, Geliang Tang wrote: > Simplify the code with list_first_entry_or_null(). Looks like there are two code snippets here in slab.c that could become a function or so. So this could be improved upon by creating a function called get_first_slab() or so. Acked-by: Christoph Lameter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/