Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp289640yba; Wed, 3 Apr 2019 08:46:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBNiv2PjLEY9z6bcGamY8dax4LhjLN9HdYe+fHDPgQRSw5MvUAMWn2EShzLODVs9O8WXyf X-Received: by 2002:a17:902:8643:: with SMTP id y3mr602616plt.187.1554306396524; Wed, 03 Apr 2019 08:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554306396; cv=none; d=google.com; s=arc-20160816; b=UMK+lxMADKI5LM4pCl7wKRucZrhOsof9sS278aBkvJm+GfLPCmwOLni/nrVtnhATC6 0XO03ATnCwwlCnKluxVHE2/ac34FeyTx+zPr4yl8hpWWg2frgJ5qnI5/CDp07jZZBUib FjWw3HSPkM9F5OKcmLhRzSPzFHkqMm/iJYJOlDRj9zCHENsMGbPqI/gsf8aVeXGIjvjE K/p2QZZYa48IDZYr2uAFPd+mlPRovfUINiF8EQN80tRP4eGzMqKwIv4fCTqsdl1CSSsE a2gALjPN1/9izB2A8eCY5Y+UjcMSshQOIFz/8Z08tIT/vibxI1TZCd+horfW2JPcXUFo QglA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=S3KEpUyvqM6uvSTVOlaUBjSIeihlWd1TPi8ErfosSE0=; b=tqxcHZLK0Y/xWjlB7yVlU1UOZvX1OE4nN57wBWeGAtY3zkEi5BAMC2BUZ84xSeWxa6 /KzB0McQujAgGAFrlXhrkswRmOlO9f3UffnNy1mwbeIQ7nr3Qd6tWUIBnp7AAS4s/EQi jyYZqh98vC2Z2eeENzTzJCUgwVyKPL7nEgIPEHs7OGQvMbjGMgPWmTVcz6r4gmmEIeXH vuoTGZaMorj1hIWH/jGaJbovuVBUQx5DgJKVG6ViI50/j/Si7WJdjEd8N6qX2D0Th77Y P+P1tXhhAwR8Rk6cuLWeObF2rESipVWVdn9gHdvwU/sGiSrEae/lrAMybWL8NhIY2VHO 0PLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=fNKVdLeG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si14179783pgg.367.2019.04.03.08.46.19; Wed, 03 Apr 2019 08:46:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=fNKVdLeG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726263AbfDCPpi (ORCPT + 99 others); Wed, 3 Apr 2019 11:45:38 -0400 Received: from a9-54.smtp-out.amazonses.com ([54.240.9.54]:58300 "EHLO a9-54.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfDCPpi (ORCPT ); Wed, 3 Apr 2019 11:45:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1554306337; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=Eh1VbaI4wezMKlsjcm5vyrOc3cPM6V0fDLZmVvAIr84=; b=fNKVdLeGoDup3EZR/C4+OUJ/1ngF37rhYt3ZVYWZq/X1pIzll+jaBCKskTzvxnYl fpEWz9k+s0ALrbAR2XjNoHsVKK/LuTsvclHrUiXraqaOXoB6fsH+IqIFR+sI34Ew3tC CjhahnUGM6G70tmFWpZufQyFNj9Q+N5Q5iZBwxbs= Date: Wed, 3 Apr 2019 15:45:37 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: "Tobin C. Harding" cc: Andrew Morton , Roman Gushchin , Pekka Enberg , David Rientjes , Joonsoo Kim , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/7] slob: Respect list_head abstraction layer In-Reply-To: <20190402230545.2929-3-tobin@kernel.org> Message-ID: <01000169e3e08a01-cd8427e0-3671-4263-870f-98cb4741f10d-000000@email.amazonses.com> References: <20190402230545.2929-1-tobin@kernel.org> <20190402230545.2929-3-tobin@kernel.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2019.04.03-54.240.9.54 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Apr 2019, Tobin C. Harding wrote: > Currently we reach inside the list_head. This is a violation of the > layer of abstraction provided by the list_head. It makes the code > fragile. More importantly it makes the code wicked hard to understand. Great.... It definitely makes it clearer. The boolean parameter is not so nice but I have no idea how to avoid it in the brief time I spent looking at it. Acked-by: Christoph Lameter