Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp296462pxb; Wed, 3 Feb 2021 06:00:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4QIz0H1KXYB18HZ+zT3k06nndugYm5pSYL8uf1ceSb3yKNFz1RqASaxDo1+bxFQ2fLUWO X-Received: by 2002:a17:907:1629:: with SMTP id hb41mr3181860ejc.197.1612360806422; Wed, 03 Feb 2021 06:00:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612360806; cv=none; d=google.com; s=arc-20160816; b=aeyMR0+UBV7Wkjyvqpt3TidwYzodlkeFcRdn9VwsnrQKQ0M8bwdKQmziL9Xd7S32Cj Wi2AGlnSeqc/6szq6vCXRLuDnXNcNA23Ql2Wu/TlAsWDyIvsrR3518WzJ1ctHG23v8J1 2MQSKN6kW0gUAnBqhH3yoXy2Il+W8Iob08uJVYyjSRBaEx2ib1yI41eiU7HoW0tGj95H v/ASB305OfbvtWi+OqDL48vpWmnyt1fS/ws2WW49P+SlI5ceVBCthHmnG77xEihqLLF/ eLndOpIH2Uh/gECzO7lxcXCghkF2NkE/MPQuYHFi/FK1ocGtNJBOhEWLtLNO8e8KBpv3 yXxA== 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=bMQZ9sGdF4kiy1VwyBsDpeGzjll7erReyrT+FzyYdzY=; b=DAFWu6bC6/99Y8nr6FBwdl2AQ+DiYD+fm7BflmsUbxh6MHPZm2wV1AwZ9Lc9/1qlLV EswyFVU9AaaXwEbk+u7CsU9I1mmxwOIbWtEClhx5O6VDEBh+b+iTDPBdk4Dkr18xtlxi 2U4ov8cBpbqa3Jo9XTFSq7ypoIQLj/UthLoXLrEgjbwQEbk5r7tQBWRL6GpzOJSpimJZ f3zz7UbCCggmA3A1zRIhdqVekyx+Z33ltNTVBfx8IIZezYnG8FAhSH65ecax8YhkS1GO OeVoQTB0Q6mP10fmFMv7SDzeRoXM+CifVhkrT1j3Ont4I5UAO6Ej8v1RoHOKXlco5ICe S0kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=BbtFhsnt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k20si1415603ejb.298.2021.02.03.05.59.41; Wed, 03 Feb 2021 06:00:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=BbtFhsnt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232001AbhBCN7P (ORCPT + 99 others); Wed, 3 Feb 2021 08:59:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231700AbhBCN7M (ORCPT ); Wed, 3 Feb 2021 08:59:12 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0E41C061573; Wed, 3 Feb 2021 05:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=bMQZ9sGdF4kiy1VwyBsDpeGzjll7erReyrT+FzyYdzY=; b=BbtFhsntImjnyUgYADRrgWEdrq UYMVfXJaEd7CX1KRsZ84AINp7vUEZQiGnXdrJkK7+MEEHGjOMmQl7IxDCNuSasbULR0GTBWJAclnH 4bbn1n6eMt+jm6uOmPSo6FHpsXxv+GkhwuC432Kh3HDLsFj4JA/qsgCTS2v131Th9km15WJl9XwZW AlombG2qXOCCk/4tJGlmVgyt+D23Q5wZkm9/LKw3W4rzJnAsVLzH8KyYLntoFmSrxIIHljRLkKVTp Nr6kz4o+Mw0NbbudRRHXnglMSIvwinWfciB3o5UGlVs5/wfzgsu81eGqkuo3KVcmA3bmiXEmdhwAX 3p61UOUQ==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l7Ifr-00Gyqr-Cv; Wed, 03 Feb 2021 13:58:28 +0000 Date: Wed, 3 Feb 2021 13:58:27 +0000 From: Matthew Wilcox To: Miklos Szeredi Cc: Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Al Viro , Andreas Dilger , Andreas Gruenbacher , Christoph Hellwig , "Darrick J . Wong" , Dave Kleikamp , David Sterba , Jaegeuk Kim , Jan Kara , Joel Becker , Matthew Garrett , Mike Marshall , Richard Weinberger , Ryusuke Konishi , Theodore Ts'o , Tyler Hicks Subject: Re: [PATCH 00/18] new API for FS_IOC_[GS]ETFLAGS/FS_IOC_FS[GS]ETXATTR Message-ID: <20210203135827.GZ308988@casper.infradead.org> References: <20210203124112.1182614-1-mszeredi@redhat.com> <20210203130501.GY308988@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 02:13:27PM +0100, Miklos Szeredi wrote: > On Wed, Feb 3, 2021 at 2:08 PM Matthew Wilcox wrote: > > > > On Wed, Feb 03, 2021 at 01:40:54PM +0100, Miklos Szeredi wrote: > > > This series adds the infrastructure and conversion of filesystems to the > > > new API. > > > > > > Two filesystems are not converted: FUSE and CIFS, as they behave > > > differently from local filesystems (use the file pointer, don't perform > > > permission checks). It's likely that these two can be supported with minor > > > changes to the API, but this requires more thought. > > > > Why not change the API now? ie pass the file instead of the dentry? > > These are inode attributes we are talking about, not much sense in > passing an open file to the filesystem. That was/is due to ioctl > being an fd based API. You might as well say "Not much point passing a dentry to the filesystem" and just pass the inode. > It would make more sense to convert these filesystems to use a dentry > instead of a file pointer. Which is not trivial, unfortuantely. Network filesystems frequently need to use the credentials attached to a struct file in order to communicate with the server. There's no point fighting this reality.