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 C6F68EB64DA for ; Thu, 20 Jul 2023 14:52:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232176AbjGTOwa (ORCPT ); Thu, 20 Jul 2023 10:52:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbjGTOwZ (ORCPT ); Thu, 20 Jul 2023 10:52:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1F8226B7 for ; Thu, 20 Jul 2023 07:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689864696; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AkiNNvhZXBOhwappo5DsNfWFblN13jxPHvb5/iriC0Y=; b=UmGd274gNrNqoq2SEuHlTIcHHBUZa8FhRVjnVO7RoejbO00mVm/UVNRW7sTwPilktA1x7J mp1bP7u36oK0YN6yjXp+JwpsbJwby3gB9Va4d3odwZNUffj22PxOSwEMbwh65qu927NZgT 4BK3d/TPao8YKacH5p5al9SXhOyryE8= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-31-hURLvlfCMUK9c_wBKei_EQ-1; Thu, 20 Jul 2023 10:51:33 -0400 X-MC-Unique: hURLvlfCMUK9c_wBKei_EQ-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-635e244d063so11130656d6.1 for ; Thu, 20 Jul 2023 07:51:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689864692; x=1690469492; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AkiNNvhZXBOhwappo5DsNfWFblN13jxPHvb5/iriC0Y=; b=MQZ7HjN3N48HE8mzgdQ61xp3WL8oQaRGAxflV8HilEGNXZiNPoJq/CVky0s5IJdnsK efYWe0oxicOqkueOjDsdGvsmE6b8JCb/IZWq8RpyJsVgINtFFlz7USi56oIv/Tu3oIPm TWH0ooufQyq/c/S1ztZem7v5HeFRH016ZKkM0W4kfqgrrQDF4QCYP9MJVe+IHWJsSkmk Gqn0wneXQnTET/mJC8rrmwydN6X2dF3XLk2/A0Ggg5JVRzLLOz2ysTQqf5Yc5aLsAoJS 2segiUcnZUO+a9M11QA6xuo1eWwqn2O+SiasNBK41GRFgYait6Msi3F668RB5jrTR6yy FZDQ== X-Gm-Message-State: ABy/qLal+AzbuhcXvYFnszv0assig/81kXfOUbXWZJjsCCtR6Iez2xNs akFKUN7el5LpZHr84bY9kql+pXuHEzxAY1PGDaHpvzq2eqbgl9GuTfPZ9SH0MLPIrjAODlHX4l5 mrImtKd+KNQMrSyWEeS00 X-Received: by 2002:a0c:e012:0:b0:63c:c041:ef7c with SMTP id j18-20020a0ce012000000b0063cc041ef7cmr4998992qvk.16.1689864692600; Thu, 20 Jul 2023 07:51:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGG9WiVjMAJC0jyp6FJ1iLPNYyic/lNvrnvPP6HMAfS4d7vXSpGs/eQms+dzXXL9v8chg2XyA== X-Received: by 2002:a0c:e012:0:b0:63c:c041:ef7c with SMTP id j18-20020a0ce012000000b0063cc041ef7cmr4998979qvk.16.1689864692339; Thu, 20 Jul 2023 07:51:32 -0700 (PDT) Received: from [172.16.0.7] ([209.73.90.46]) by smtp.gmail.com with ESMTPSA id u4-20020a0cf1c4000000b006375f9fd170sm429007qvl.34.2023.07.20.07.51.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Jul 2023 07:51:31 -0700 (PDT) Message-ID: <251d9862-e335-243e-d65a-c5538b4df253@redhat.com> Date: Thu, 20 Jul 2023 09:51:30 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: allow building a kernel without buffer_heads To: Christoph Hellwig , Jens Axboe Cc: "Darrick J. Wong" , Andrew Morton , Matthew Wilcox , Christian Brauner , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cluster-devel References: <20230720140452.63817-1-hch@lst.de> Content-Language: en-US From: Bob Peterson In-Reply-To: <20230720140452.63817-1-hch@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On 7/20/23 9:04 AM, Christoph Hellwig wrote: > Hi all, > > This series allows to build a kernel without buffer_heads, which I > think is useful to show where the dependencies are, and maybe also > for some very much limited environments, where people just needs > xfs and/or btrfs and some of the read-only block based file systems. > > It first switches buffered writes (but not writeback) for block devices > to use iomap unconditionally, but still using buffer_heads, and then > adds a CONFIG_BUFFER_HEAD selected by all file systems that need it > (which is most block based file systems), makes the buffer_head support > in iomap optional, and adds an alternative implementation of the block > device address_operations using iomap. This latter implementation > will also be useful to support block size > PAGE_SIZE for block device > nodes as buffer_heads won't work very well for that. > > Note that for now the md software raid drivers is also disabled as it has > some (rather questionable) buffer_head usage in the unconditionally built > bitmap code. I have a series pending to make the bitmap code conditional > and deprecated it, but it hasn't been merged yet. > > Changes since v1: > - drop the already merged prep patches > - depend on FS_IOMAP not IOMAP > - pick a better new name for block_page_mkwrite_return > Hi Christoph, Gfs2 still uses buffer_heads to manage the metadata being pushed through its journals. We've been reducing our dependency on them but eliminating them altogether is a large and daunting task. We can still work toward that goal, but it will take time. Bob Peterson