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 485D0C77B6E for ; Fri, 14 Apr 2023 13:16:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229713AbjDNNQS (ORCPT ); Fri, 14 Apr 2023 09:16:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbjDNNQR (ORCPT ); Fri, 14 Apr 2023 09:16:17 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE69D3A8D; Fri, 14 Apr 2023 06:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=bewZGEzP35vOEXrv26we0KnfsWo+fadUsj5rz09UWlo=; b=M7yC6Q+jM2U3PddJlmSmpxqjld f+Z4QA9pWdhgZxLjWmRlJ5QjWCC4IBiXjKiOp9Czax+yyheHN6U6AAs5w+eeZZl5JRQIcPIrPTMpt atfU/GFREm+KcRjeyFYOewq3SCGANJFQJCAKi+KNd7GsZ/0v+Z3dHvby1AHmKs5xcuTKpIgDfRzKl yLf+h27KHF2atKCDi94Or0Tz7m6+NNEB6iijcSd9vgSvjBHuXNC1CbwxKIj3WdXP6/AZBHZrj5rmG LZH+ArxJCHV2tOdi3O9G1X1UXntJv2+fRwXVo038hiBQdgKweffqWqq4/z05EELHTnFv5/PFUqoyA ap1zGQjA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pnJHd-008lmQ-Qx; Fri, 14 Apr 2023 13:16:09 +0000 Date: Fri, 14 Apr 2023 14:16:09 +0100 From: Matthew Wilcox To: Pankaj Raghav Cc: brauner@kernel.org, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mcgrof@kernel.org, gost.dev@samsung.com, hare@suse.de Subject: Re: [RFC 3/4] fs/buffer: add folio_create_empty_buffers helper Message-ID: References: <20230414110821.21548-1-p.raghav@samsung.com> <20230414110821.21548-4-p.raghav@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230414110821.21548-4-p.raghav@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Fri, Apr 14, 2023 at 01:08:20PM +0200, Pankaj Raghav wrote: > Folio version of create_empty_buffers(). This is required to convert > create_page_buffers() to create_folio_buffers() later in the series. > > It removes several calls to compound_head() as it works directly on folio > compared to create_empty_buffers(). Again, I would create a create_empty_buffers() wrapper, but this time I would put it in buffer.c.