Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3494317iob; Tue, 17 May 2022 00:54:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZMf3eoOORVoYgCgnYd4rEx+H8OCmM96/W3/IPaNa0xe/a27UdvJa7QIFPZBUQgmHVaCam X-Received: by 2002:a17:902:db11:b0:161:9513:da41 with SMTP id m17-20020a170902db1100b001619513da41mr5408864plx.145.1652774046771; Tue, 17 May 2022 00:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652774046; cv=none; d=google.com; s=arc-20160816; b=JJzm4bCkeRG0p79yNf/37Tz49tvuUdyXJ/fyFeU9G81G5+x5ZmK4zGEpFsgh5wdGtZ ZiBnPDXsD3azJlH5wdF2QPGFZP84rDLF0C5yCyvoruaLUwi5nfPjFXwgGSiy94nttXSq 6fIfp1wxNnjWVXjhNAolGkMA2YAvLSDUEdelxNZVFh6wJEOYQyZN2J/wrgL/uwf0Tk7i 2v0kBmTLo1YXuf5O95pfQDtTAPVJ6p3OPf3IQsl7yYrZueSjTbtoB7rUdh5+2kOJT3Y9 GUnZYPGSNLAF+vDDY0E1wnccHnUcZpMiT7UyrrbASPrJnBQEyasB9mZG+vrgS6xB0ITE DviA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=fpq42jbYglf3OsJsdifGSxvsrjlppZuVNTl8R1B+fGU=; b=lO1J+8ScgD9wfVwMFVDB9FHfqRc9i51K1KDMJeyY5baaymBspHvVgU3C3VJ1NgIkio h8xYAfvpN2Cjg2PCeXhOpqwoJLzt6Q822WxiNRfaFIauTK5vmj1nBlux+IEpjqNThhJP tV0igtGN2LjpvInDgAfuo6usnXOEfIGmX7sx2OzQGRxWEsr5N6Y+E3pDdC+r+IxHndV0 6TrrJuf/3PM++H5EzHIe0kgKYG9qh3BCtYf8OajuQ3+PWoZAxMXzuFfYzf9BIzl51PNH Hbq9fv9Mzq2++UsS2/yRr+WG3MzdjaQ5Ug+Deca11n5IHDL4qlZdtIaAhdlp0jEgIE9r OHwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om1-20020a17090b3a8100b001da2640f19asi2161282pjb.164.2022.05.17.00.53.55; Tue, 17 May 2022 00:54:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238849AbiEQGMu (ORCPT + 99 others); Tue, 17 May 2022 02:12:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232036AbiEQGMn (ORCPT ); Tue, 17 May 2022 02:12:43 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33F7443EFD; Mon, 16 May 2022 23:12:41 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 8B87E68AFE; Tue, 17 May 2022 08:12:38 +0200 (CEST) Date: Tue, 17 May 2022 08:12:38 +0200 From: Christoph Hellwig To: Khazhismel Kumykov Cc: Tejun Heo , Jens Axboe , Alexander Viro , Christoph Hellwig , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [RESEND][RFC PATCH] blkcg: rewind seq_file if no stats Message-ID: <20220517061238.GB4789@lst.de> References: <20220513174030.1307720-1-khazhy@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220513174030.1307720-1-khazhy@google.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, May 13, 2022 at 10:40:30AM -0700, Khazhismel Kumykov wrote: > Restores the previous behavior of only displaying devices for which we > have statistics (and removes the current, broken, behavior of printing > devname with no newline if no statistics) > > In lieu of get_seq_buf + seq_commit, provide a way to "undo" writes if > we use seq_printf I have to say I much prefer the simpler fix from Wolfgang. But if we want to go down this route it needs to split into a patch for the seq_file infrastruture and a separate one for the blk-cgroup code.