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 938FEC77B73 for ; Thu, 20 Apr 2023 14:02:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DFC69900003; Thu, 20 Apr 2023 10:02:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DABC2900002; Thu, 20 Apr 2023 10:02:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C73DC900003; Thu, 20 Apr 2023 10:02:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id B8171900002 for ; Thu, 20 Apr 2023 10:02:42 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 2DE321A027C for ; Thu, 20 Apr 2023 14:02:42 +0000 (UTC) X-FDA: 80701934964.13.832DE13 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf20.hostedemail.com (Postfix) with ESMTP id 00B441C0022 for ; Thu, 20 Apr 2023 14:02:35 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=Kwq2f9er; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=gKEjB7YD; spf=pass (imf20.hostedemail.com: domain of jack@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=jack@suse.cz; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1681999356; 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=Wh1XX+NIsMFChIJFhOmeoghzgkkDTbLXHLLd1wCDovM=; b=lGK2OS2+jUh+y7OI4JMofGTLI84ufyw0yQEjN7dPJc0kLq2pJfl9oQL273IzrncnqjHumQ 7+XKev07UucQcgPxCZK1T5vwd01WJrwc99PLXkGyfc8axoAoV3/wPozBAxcgPEigA2SvXS O4wVp+KH9ZxSJ68gKb1WJXRdnSuLbS0= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=Kwq2f9er; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=gKEjB7YD; spf=pass (imf20.hostedemail.com: domain of jack@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=jack@suse.cz; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1681999356; a=rsa-sha256; cv=none; b=uWZtzDTMiPnEHS7DFuQmDRl/lmFkInjYsoDbRg10fJfWzv3JXyrBdwfqNuiwGLbgwruffj gCwilNly0xPWOcIm9WvIZicrKM4EGn89otdjBKab4Sb4TSW7KwMIYgwzqUcmmFZmXkANoM ba+v2KErv/YAdu524OdlzNfWhXsqPxw= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9BB1E21903; Thu, 20 Apr 2023 14:02:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1681999354; h=from:from:reply-to: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=Wh1XX+NIsMFChIJFhOmeoghzgkkDTbLXHLLd1wCDovM=; b=Kwq2f9eraPsyISaXQc3iey2GbKD78fz/FETtSkC/hIJSPxcM37J/NmZ+iaCS63dkLxlE++ ItSwjoAQilNgk2qmqF/1XbYT7vt7cJhGP6gKuDzDrb2brMOshuwnVu7dPPczWX/cige3O7 m+pxMdVQo+ImmOaG1zKOHDxg+UVFWA0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1681999354; h=from:from:reply-to: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=Wh1XX+NIsMFChIJFhOmeoghzgkkDTbLXHLLd1wCDovM=; b=gKEjB7YDO9c0y2ZIH0Boow/P/aFU4IfdbjexfZcX2IBCZhfYRaFZxFaevTL+mjdlhzSGlP eNuFf7alGYezE6Cg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8B44D13584; Thu, 20 Apr 2023 14:02:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kkL4IfpFQWTOLAAAMHmgww (envelope-from ); Thu, 20 Apr 2023 14:02:34 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 1FA29A0729; Thu, 20 Apr 2023 16:02:34 +0200 (CEST) Date: Thu, 20 Apr 2023 16:02:34 +0200 From: Jan Kara To: cem@kernel.org Cc: hughd@google.com, jack@suse.cz, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, djwong@kernel.org Subject: Re: [PATCH V2 5/6] shmem: quota support Message-ID: <20230420140234.5mv5kixwr7bxnu5r@quack3> References: <20230420080359.2551150-1-cem@kernel.org> <20230420080359.2551150-6-cem@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230420080359.2551150-6-cem@kernel.org> X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: azc3rjcf4bt9cnypim3c577pmhk1b9fu X-Rspamd-Queue-Id: 00B441C0022 X-HE-Tag: 1681999355-158828 X-HE-Meta: U2FsdGVkX18ZbRPjVO79uLhEfZ0K8RMPh6rai1sH+i073gubYpJQ6ZleQVzRk8qaAEmlFiO4x74JApAyLNofdHDLXwoa7u/HNp+qBWfuN3kMxvF3lCUQWsEuAVcEVwm/9bbW7Oj/HY+4kXViWkggB2CGgee+df5YUmlGY83sk7lPPI7SVlsDYiXzIxJ8ExNgTqhomA6Z3C1m0a5xCa5p5xltc/I2ZCOk9bd22LIElsHR1StN30IuEZcFJH0U+Ks4vt+MSzu879lQ4zTvBH1rn+EzyP2WiTqsRdC5OZ49UjnUzHhNq+H3jAyhGjqbt8gi6egB0sg61QpD52VyaERjYXEOQB8rsUuIqtH8DFJ9aTDhtHgrWIHH0rGYb2byHSBam39C3NQ0PjxIBPmr23RRzfFO3AdwWwKFpKCCh51kUtRoPQdVyJt8MHpT5PmIYUBQ0VgX+6N3RQt6pimmW4xQuJWt+wnzTMsNuAuDKWeFUZSlWYHtTZajRafCvdGsn25bqpHti+jRV6Hw9BVYWY7rC7mawo2Xi3A7oXWyiVzVzyfqT7NKZ9tVFu05bH0ynTvT9iCLSoSLwgQBE43xj2Zu6Icta1R5mQp18KdJQJ1lOnNdiexNb1AO+otb1XLFqsGs1xpV+QGc6UwX0gWtbP04dtFbtlRhZzWefpZe1MvFlwpr+5/njz1NuwPOaGXK4h/xRlAyylod0gB7KGuUTwf2eaVhhMg9GpiviEOWAkHh8OhTN5fjkLWQYPHfjCBD8YRHkB4qQ7mL4FImD03ClZknR99e9c2XB0eKH9W38rkzxmwXdBGp60JUQUTdU3yA8Vimkj88xr44Q7OA15Tmy8Nw9lPw7BwKJ1J7N/aZ/GafpnNg78H4ApE61gkOB6h4QkMgpPV+J8LdPvW/xjND+Rc9rjaynHtamqod+Ah6ShyEy2MQb69ogo5d7HSGzh9gJ8bv4DJMvikKDYPbBTvjv4s RGMiIRUQ Ld/Y+3Y/bSM4u0wOvX88yX9IyCar2PpLtsCbkAq9XhKbFVwOs+LuUBJSB+4oVnK7dNCMwek/bOGLtPK3uxMf85VA6m/tGcRo+B/4PN19BavVI8M9/g8wZc9SoFTulHdAHIQ1FU8EWye+uhJLSpIxE0Azs1iVb19K38NugC2CpfN9dIdgL/0S4/qHwoq7HJTa5HarwnG237gpokHAu4du8IDFWa07vploCaOGsu44mLU+Cdnquv81aQpwKHtjxhao1aByMW/97Is0/JJg5gwCoI3KnkHbt13LCt+ILY5JaVZCtIl6cT3TvdXncOir4pe3lxkl4S7LX7QivR0X8qDjkwrJT7DXNQdf+68LR 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 Thu 20-04-23 10:03:58, cem@kernel.org wrote: > From: Lukas Czerner > > Now the basic infra-structure is in place, enable quota support for tmpfs. > > This offers user and group quotas to tmpfs (project quotas will be added > later). Also, as other filesystems, the tmpfs quota is not supported > within user namespaces yet, so idmapping is not translated. > > Signed-off-by: Lukas Czerner > Signed-off-by: Carlos Maiolino I've found only one typo fix below. Otherwise feel free to add: Reviewed-by: Jan Kara > diff --git a/Documentation/filesystems/tmpfs.rst b/Documentation/filesystems/tmpfs.rst > index 0408c245785e3..1d4ef4f7cca7e 100644 > --- a/Documentation/filesystems/tmpfs.rst > +++ b/Documentation/filesystems/tmpfs.rst > @@ -86,6 +86,21 @@ use up all the memory on the machine; but enhances the scalability of > that instance in a system with many CPUs making intensive use of it. > > > +tmpfs also supports quota with the following mount options > + > +======== ============================================================= > +quota User and group quota accounting and enforcement is enabled on > + the mount. Tmpfs is using hidden system quota files that are > + initialized on mount. > +usrquota User quota accounting and enforcement is enabled on the > + mount. > +grpquota Group quota accounting and enforcement is enabled on the > + mount. > +======== ============================================================= > + > +Note that tmpfs quotas do not support user namespaces so no uid/gid > +translation is done if quotas are enable inside user namespaces. ^^ enabled Honza -- Jan Kara SUSE Labs, CR