From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [RESEND][RFC PATCH] blkcg: rewind seq_file if no stats Date: Tue, 17 May 2022 08:12:38 +0200 Message-ID: <20220517061238.GB4789@lst.de> References: <20220513174030.1307720-1-khazhy@google.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20220513174030.1307720-1-khazhy@google.com> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 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.