Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp29341lfe; Fri, 15 Apr 2022 17:56:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb+FrwiqgjOhaUBPy6qI9Tdnl8GJQvUZ3Rsr9nmJ8KtIUahdWv+J4H9Kc00RQwIt9SG9Al X-Received: by 2002:a17:902:758c:b0:154:667f:e365 with SMTP id j12-20020a170902758c00b00154667fe365mr1624712pll.120.1650070562398; Fri, 15 Apr 2022 17:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650070562; cv=none; d=google.com; s=arc-20160816; b=ka2k1XlfNqvDmDTirbcYBJPcTkmNBFs00RA0xSl/z0Az1rEAEMtUtEyVeWKxAHUUKC Q9yICdDNJ426PnRcrO+xN4YiMrQRFrP0qUjC3uajnEzhLqViyfRVVq5OvttWLpoZZPgL C/mw8idnIaueLJLgqGsx1GGmCAbeMqBaAjZXL4hVLyzejdB6zJAKXV0eiMhFKfZcE4Cp 1gjORZE+MmJCWYU9xrTdi5DzrDx/S/fAtyWadHKjRR2LlWjNImbPPqWrR0gp8z0oTKPh VZm7acxEc4G2xAy/EPltrmbS84qtrDuzFiGNtwRk5pRzahofziAujMWrwL7yFVW6X77U 8ofQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PVyEZSQLSR1NaLXbDUnQkPyRRRCDx872THQc6EzVVu8=; b=O33iocEdoWcu9qxCdjvI3Lodx64aZbnJPpa4e7aypkX07F0yRF6w+ystdewZ47ePlI CRgNP7guP57V8PziIejkvGxysWmQf2Gls0bOqy732mKM5Sxpg6r12oNAKVmijbY5A9P/ 5eHxr0pfzD29gAcDmPOiJ16NRKMmotYtrpU+KW74/M6nY6eaSkA0LHRJAqulHFROj/QD pD6k0UDs2+tXIA0WUVsLmUqO3gDlBTcdv9RjNPUd0XQ4A6XZqfivPpVUPLSv5SCkrvKA HE0hffmZvUWxpH50jWceepW00R6Rajq4ZY2WDzstTKs8abxJO60iYRqrGh1D2kDVOLN/ R7WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=COp+AaTK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k1-20020a17090aaa0100b001c6f01bd910si5306019pjq.153.2022.04.15.17.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:56:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=COp+AaTK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 691B4114FCF; Fri, 15 Apr 2022 17:42:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350338AbiDOWh6 (ORCPT + 99 others); Fri, 15 Apr 2022 18:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232267AbiDOWh4 (ORCPT ); Fri, 15 Apr 2022 18:37:56 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D37FAB8221; Fri, 15 Apr 2022 15:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PVyEZSQLSR1NaLXbDUnQkPyRRRCDx872THQc6EzVVu8=; b=COp+AaTKD8gkC8NmZZcEaYufBk Dk7ASQjGWH2fIw3M94VIh/ifoJU88e0puL2aCCl0Nv0NxrsL8pK1FYpeRe9F2aEW73O5wmoBoRaRs Sq/8u5TXneETEG9ei7+A4veRR61FIN4I4P+Bjqcw2QTNKwznzHOCH8BFRVBo/ziZsfdk3Csc18k2F zYCwtH/BdcBJIRYZncL8Ytl4jPLGbLrECTxkcImnOCu3awMd44XbVFmW6cvMuHLUWyD+mnTZtbd4u xRX7fqueAqK5YkS+LVkKh5rN3w5W1Mtntz5wdsTMCxyOuR+KwdKUaHq/2eKBiJCWAHKcuEIJUjtkr wkSL595Q==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfUX9-00BbNz-AK; Fri, 15 Apr 2022 22:35:19 +0000 Date: Fri, 15 Apr 2022 15:35:19 -0700 From: Luis Chamberlain To: Meng Tang Cc: keescook@chromium.org, yzaikin@google.com, nixiaoming@huawei.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH] fs/proc: Introduce list_for_each_table_entry for proc sysctl Message-ID: References: <20220411051205.6694-1-tangmeng@uniontech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220411051205.6694-1-tangmeng@uniontech.com> Sender: Luis Chamberlain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 11, 2022 at 01:12:05PM +0800, Meng Tang wrote: > Use the list_for_each_table_entry macro to optimize the scenario > of traverse ctl_table. This make the code neater and easier to > understand. > > Suggested-by: Davidlohr Bueso > Signed-off-by: Meng Tang Thanks! Queued onto sysctl-testing [0]. Feel free to let start sending in the rest of the stuff you were working on. But please note I'll wait to push this to sysctl-next to get testing under linux-next until this gets at least some compilation testing without issues from sysctl-testing. [0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/log/?h=sysctl-testing Luis