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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B697CC4332F for ; Tue, 22 Nov 2022 14:21:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 40C7C6B0075; Tue, 22 Nov 2022 09:21:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3BDBE6B0078; Tue, 22 Nov 2022 09:21:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 284F68E0003; Tue, 22 Nov 2022 09:21:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 195B46B0075 for ; Tue, 22 Nov 2022 09:21:27 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id C3C10120D51 for ; Tue, 22 Nov 2022 14:21:26 +0000 (UTC) X-FDA: 80161290972.06.D7BEB90 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf18.hostedemail.com (Postfix) with ESMTP id 41A791C0012 for ; Tue, 22 Nov 2022 14:21:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669126885; 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: in-reply-to:in-reply-to:references:references; bh=cIJAo6xebFAIOtpr/qxmFW1V4vomSri9MAXvjkm3gSg=; b=BAtT8n/4Ziemj74QvfGuaF0DoLrgJmCRScNJtH5BpB1zFU52NStZMbQax0f86vuf/pneTJ mkiqV2TfI8dYqcC3Vb8ay+sH49noHvpXNqZ/67DLd+24Hek1ewew5avNxfsKoT4T1MY+vt Ofab495FGXl/0Iwjxbp5UG7lSVDDRuk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-656-psAMjxtvNgem1Uu6gg2dUQ-1; Tue, 22 Nov 2022 09:21:22 -0500 X-MC-Unique: psAMjxtvNgem1Uu6gg2dUQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8DA37857F90; Tue, 22 Nov 2022 14:21:21 +0000 (UTC) Received: from fedora (ovpn-193-106.brq.redhat.com [10.40.193.106]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4A6B5140EBF3; Tue, 22 Nov 2022 14:21:20 +0000 (UTC) Date: Tue, 22 Nov 2022 15:21:17 +0100 From: Lukas Czerner To: Christoph Hellwig Cc: "Darrick J. Wong" , Hugh Dickins , Jan Kara , Eric Sandeen , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 1/3] quota: add quota in-memory format support Message-ID: <20221122142117.epplqsm4ngwx5eyy@fedora> References: <20221121142854.91109-1-lczerner@redhat.com> <20221121142854.91109-2-lczerner@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1669126886; a=rsa-sha256; cv=none; b=njqGKYrDzuGkM4sCF962xw77WSHvk8dDoG0QGVEbszzcv3OJXJbliwQ9djul8GASL3QcY9 A3fy88SnxL3HZobXnI3Ooc8rzYelRND5/cuPl5sWGm21X7StrvxdtXKvxPAKYGMBlvefAS aS19BWZ1imNLv3ZUq6OdNvD88rouqGE= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="BAtT8n/4"; spf=pass (imf18.hostedemail.com: domain of lczerner@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=lczerner@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1669126886; h=from:from:sender: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=cIJAo6xebFAIOtpr/qxmFW1V4vomSri9MAXvjkm3gSg=; b=4Z55KsiItTBnRg5kX2O4svwUtSq1UGhNaATx51arfd7fcyxw7mEdma5Ki5dSjQEaRBjERP UQ1QPGchO8Bvr8l4Kt4cSHXV82gu8QTjANEVnehDQhsBdzQUq9ZR2ar2zIVdmiPqlx7SEl E90yAtTE8vGZ1GpNz34IVY1HceO32P0= X-Stat-Signature: jx7cbsewyf7e631xy6qp5dt5zubta4fn X-Rspamd-Queue-Id: 41A791C0012 X-Rspam-User: Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="BAtT8n/4"; spf=pass (imf18.hostedemail.com: domain of lczerner@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=lczerner@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspamd-Server: rspam02 X-HE-Tag: 1669126886-277781 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Nov 22, 2022 at 04:59:11AM -0800, Christoph Hellwig wrote: > On Mon, Nov 21, 2022 at 09:48:18AM -0800, Darrick J. Wong wrote: > > Would it be wise to "persist" dquot contents to a (private) tmpfs file > > to facilitate incore dquot reclaim? The tmpfs file data can be paged > > out, or even punched if all the dquot records in that page go back to > > default settings. > > That seems like a good idea for memory usage, but I think this might > also make the code much simpler, as that just requires fairly trivial > quota_read and quota_write methods in the shmem code instead of new > support for an in-memory quota file. You mean like the implementation in the v1 ? -Lukas