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 B3D0FC433EF for ; Wed, 9 Feb 2022 14:27:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 35B576B0074; Wed, 9 Feb 2022 09:27:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 30BAC6B0075; Wed, 9 Feb 2022 09:27:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1D4366B0078; Wed, 9 Feb 2022 09:27:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0056.hostedemail.com [216.40.44.56]) by kanga.kvack.org (Postfix) with ESMTP id 0E5E46B0074 for ; Wed, 9 Feb 2022 09:27:41 -0500 (EST) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id C21D4182057E9 for ; Wed, 9 Feb 2022 14:27:40 +0000 (UTC) X-FDA: 79123469880.19.DC9444C Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf20.hostedemail.com (Postfix) with ESMTP id 4FD561C0008 for ; Wed, 9 Feb 2022 14:27:40 +0000 (UTC) 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 ED20D210DC; Wed, 9 Feb 2022 14:27:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644416858; h=from:from:reply-to: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=zR5usoKMTeoQ9+rrjJTPPrHXO3MKPTmuxZMkhS6HknU=; b=WZi6wXBd8VtH6Y/aG9E+es+ylcfvFlV2AQJD3PPMYz9DJdlIFRmYYaj10JbH9JWSivdFm+ CLaFl41S9Xoi7C/e63VyDfL8bSMJ8ONuE2Rp3pWbTeWrAfJzPc4HnM7xM3ZQ0EAGuBlVHW vj1YUpKwrYsO12nd1tjfy5IQ7aUjmrw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644416858; h=from:from:reply-to: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=zR5usoKMTeoQ9+rrjJTPPrHXO3MKPTmuxZMkhS6HknU=; b=rIBy35BFZzKYQh4bZOw8SSPa2Dlu02IuaN7R8LnqkQ4rC2/VEI6Bm7ZVjUplCeUH66bafG yt8cawKqD9In81CQ== 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 BCECD13A70; Wed, 9 Feb 2022 14:27:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 0XtuLFrPA2KIaAAAMHmgww (envelope-from ); Wed, 09 Feb 2022 14:27:38 +0000 Date: Wed, 9 Feb 2022 15:27:30 +0100 From: Jean Delvare To: Xavier Roche Cc: LKML , Hugh Dickins , Linux Memory Management List Subject: Re: [PATCH RFC v1] tmpfs: support for file creation time Message-ID: <20220209152730.13f52fa2@endymion.delvare> In-Reply-To: <20220205141233.GA938324@xavier-xps> References: <20220205141233.GA938324@xavier-xps> Organization: SUSE Linux X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspam-User: Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=WZi6wXBd; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=rIBy35BF; dmarc=pass (policy=none) header.from=suse.de; spf=pass (imf20.hostedemail.com: domain of jdelvare@suse.de designates 195.135.220.28 as permitted sender) smtp.mailfrom=jdelvare@suse.de X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 4FD561C0008 X-Stat-Signature: a8c5uuez6yj4bfkecfisfi5a7rhx6ebt X-HE-Tag: 1644416860-667076 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 Sat, 5 Feb 2022 15:12:33 +0100, Xavier Roche wrote: > Various filesystems (including ext4) now support file creation time. > This patch tentatively adds such support for tmpfs-based filesystems. > > The reason is that creation time has been supported on an increasing number > of filesystems (this information can be retrieved through the statx() > userland function), and its support for tmpfs would add consistency. > Example of use includes checking the creation time of an ephemeral status file > being updated (such as a "work in progress" placeholder), to get two time > points (starting point and last update). > > Note that I am nothing but a new contributor, and while this patch has > been tested (and userland results checked), the logic might be broken. > > Signed-off-by: Xavier Roche > --- > include/linux/shmem_fs.h | 1 + > mm/shmem.c | 11 +++++++++++ > 2 files changed, 12 insertions(+) > (...) Tested-by: Jean Delvare Code looks reasonable, but take my review with a grain of salt as this isn't my area. Reviewed-by: Jean Delvare -- Jean Delvare SUSE L3 Support