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 175DDC04A95 for ; Thu, 29 Sep 2022 08:44:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235329AbiI2Iox (ORCPT ); Thu, 29 Sep 2022 04:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234940AbiI2Iow (ORCPT ); Thu, 29 Sep 2022 04:44:52 -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 9674D26486 for ; Thu, 29 Sep 2022 01:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664441090; 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=bhURcHiYMgqHQeK9HxVnUCNM0WJFXYGBheggezh9BdQ=; b=caJjVlLhY2XXFxdTZcR4D0yEhHsehVW81XTV4uAIz1i8elKEg5W/ee7wmlUobos1GQff+l 6nlCE879+r0i+LKnKyVfynWy3IftrTS63GBgr2ngp+DqLftddJyy5TidQ1AA/+hdczoLe4 ykRJjPhDtd1htsWBwy4IB8qiuq4bAFY= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-657-kxELS-fmNRyxf4tVZaqV1g-1; Thu, 29 Sep 2022 04:44:47 -0400 X-MC-Unique: kxELS-fmNRyxf4tVZaqV1g-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 12C201C05144; Thu, 29 Sep 2022 08:44:47 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.78]) by smtp.corp.redhat.com (Postfix) with ESMTP id 232E9140EBF4; Thu, 29 Sep 2022 08:44:46 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20220922084442.2401223-6-mszeredi@redhat.com> References: <20220922084442.2401223-6-mszeredi@redhat.com> <20220922084442.2401223-1-mszeredi@redhat.com> To: Miklos Szeredi Cc: dhowells@redhat.com, linux-fsdevel@vger.kernel.org, Al Viro , Christian Brauner , Amir Goldstein , Yu-li Lin , Chirantan Ekbote Subject: Re: [PATCH v4 05/10] cachefiles: use vfs_tmpfile_open() helper MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3533149.1664441085.1@warthog.procyon.org.uk> Date: Thu, 29 Sep 2022 09:44:45 +0100 Message-ID: <3533150.1664441085@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Miklos Szeredi wrote: > - path.dentry = vfs_tmpfile(&init_user_ns, fan, S_IFREG, O_RDWR); Is there any point passing S_IFREG in to vfs_tmpfile()? Can you actually make a tmpfile that isn't a regular file? David