From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECAAFCDB474 for ; Fri, 20 Oct 2023 05:05:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233940AbjJTFFb (ORCPT ); Fri, 20 Oct 2023 01:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbjJTFF2 (ORCPT ); Fri, 20 Oct 2023 01:05:28 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63301D4C for ; Thu, 19 Oct 2023 22:05:27 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FE50C433C8; Fri, 20 Oct 2023 05:05:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697778327; bh=fkP5kKXCMlyWPz7pz7wvmEyP0oUqwxiPLe8Hc+jGjLE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pgtOpclt1U1oMhg9MqET8TC6szYa15Al9kd0jIeU8oG5z16svOE3D7r/LYKs31a1n i/VInf/SiAzumSwkkTtpCo/tgjbKO9Z/NeQFBOJkuLNx49NUmQyu8wcBVybT7Q/NyL OhPi6LcRsT0LcsspWDvPP3xXDfTHJYlyLr9Hb6MQ= Date: Fri, 20 Oct 2023 07:05:24 +0200 From: Greg KH To: "Matthew Wilcox (Oracle)" Cc: Steven Rostedt , Kees Cook , Christoph Hellwig , Justin Stitt , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Kent Overstreet , Petr Mladek , Andy Shevchenko , Rasmus Villemoes , Sergey Senozhatsky , linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] trace: Move readpos from seq_buf to trace_seq Message-ID: <2023102012-pretense-agnostic-d377@gregkh> References: <20231020033545.2587554-1-willy@infradead.org> <20231020033545.2587554-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231020033545.2587554-2-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 20, 2023 at 04:35:45AM +0100, Matthew Wilcox (Oracle) wrote: > To make seq_buf more lightweight as a string buf, move the readpos member > from seq_buf to its container, trace_seq. That puts the responsibility > of maintaining the readpos entirely in the tracing code. If some future > users want to package up the readpos with a seq_buf, we can define a > new struct then. > > Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Greg Kroah-Hartman