Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2472020imw; Wed, 6 Jul 2022 06:34:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u5J4MeyyaffmsfIUAdiX+gfir9/7DgIdkLlmouGQZv6ZH4w3Hdd0fJl4peUI0OO21gzK8n X-Received: by 2002:a17:906:6a03:b0:726:c0e5:d58a with SMTP id qw3-20020a1709066a0300b00726c0e5d58amr39394307ejc.288.1657114474989; Wed, 06 Jul 2022 06:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657114474; cv=none; d=google.com; s=arc-20160816; b=TiMpvDVZ6as3y1C24qehcAoggscdoyB5GCn0a4nS/K+B67Ofw+7PwtsgKNZm3ad6XR dAZ4t5IVy+9lxfx/e/GMjw9ekYVq8gKU3S/rki5m3DHC9hlyqMBvMy+1YVEBcQ4hM+1h v8qPP5IAEPpN+shF4JT/lxbeYKvypKSKKSHA5CACZoYI/OIxVjjbZpuq3c7saN8cI3kN PCLvtEsr2HNYh3QcEtPjwKxO/zUoo8ON5CqyK3x6GVaqyMubAADm04O3R834Bs5qZLKC K9IKCEqlYdLZbtynk/qw+uaj3SFNfbT++SAC+LtR5W9qa8WU7oI7arUFCiob4b+mJdZt FIUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oZewV7nvSkHVBfShe1MZGHcV0gb/7NEtkHKBliIeP7s=; b=G4GBm6FrRYl+shYGp41S5TlMVyxHyxgPtBWvmwmk14EclT90fGgLLNa9ImJXHHSgEM BoK+w+eBFEpUar9CAkszFnUdwpOMnFCTQrqmTnjFfMQIToBU+9Nrh2+xM85AaYqLIX/f W6hV5BOE2O/ua93DO6O3ubfQtQlWUEak2wNx7om6ooceN/TxNX6Ur0p/UZjooFVt00qk H/furh8VJ1SgkZbFzBo61/yKDz5AJQcM1ZDFiydAn3YeNXCyDzctMbh3dKdhRwWJS+M1 eDoqtjfqNJscC/Usy6zZT9fmx+q6onKk3Rd6GEVDNTb3ppsAWHlnqbABBnNIJzKapsNu zEcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qOjLPInd; 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 oz17-20020a1709077d9100b0072629ece5e2si9464778ejc.61.2022.07.06.06.34.09; Wed, 06 Jul 2022 06:34:34 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qOjLPInd; 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 S232095AbiGFNJY (ORCPT + 99 others); Wed, 6 Jul 2022 09:09:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233363AbiGFNJW (ORCPT ); Wed, 6 Jul 2022 09:09:22 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A37C205C3; Wed, 6 Jul 2022 06:09:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=oZewV7nvSkHVBfShe1MZGHcV0gb/7NEtkHKBliIeP7s=; b=qOjLPInd+VTQAgvTwzFUbTvHK4 lrIqhVDJZUUPAdV5ipvvFqjNhc+mBBf5oO32lYMGfqCZ6S4XIpJAZ3v5xMCPPgVrAQ7LwR1tMcQlG yiVxA+KmEpBEsuBqLQauEjSzNtZTLGK9oKdFHEFrMCJT2i9fzqHLfzGKBBecb4xXnx5uZdnp8kf9p 2oA8jDQ6SCaXGjJll8vDdYLXM+EflLXWuIbBERgknGvq5Tn8eZU2a0sly3OF0GzegPNRRrfCOua1c LPFM+aey0BZs+V3u01XKL56lw1YbpR2EaDP4nZ92OthsEMBWnhpBPPnmOvXSowCMcZf3+o+P7vhS6 R2VQRIGQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o94mO-00AAZy-6T; Wed, 06 Jul 2022 13:09:20 +0000 Date: Wed, 6 Jul 2022 06:09:20 -0700 From: Christoph Hellwig To: Sergei Shtepa Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/20] block, blksnap: big buffer in the form of an array of pages Message-ID: References: <1655135593-1900-1-git-send-email-sergei.shtepa@veeam.com> <1655135593-1900-9-git-send-email-sergei.shtepa@veeam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1655135593-1900-9-git-send-email-sergei.shtepa@veeam.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Mon, Jun 13, 2022 at 06:53:01PM +0300, Sergei Shtepa wrote: > Description of the struct big_buffer, which is used to store > sufficiently large amounts of data, such as a CBT map, and functions for > working with it. There are systems on which quite often the kmalloc() > memory allocation function of several hundred kilobytes ends with an > error code, and it is impossible to use virtual memory when handling an > I/O unit, since a page fault situation is possible. A simple array of > pages solves this problem. FYI, vmalloc can now be used in a GFP_NOIO context by using memalloc_noio_save / memalloc_noio_restore, which could be used to simplify this a lot.