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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8FD8C433DB for ; Wed, 3 Feb 2021 13:59:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 659CD64E43 for ; Wed, 3 Feb 2021 13:59:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232144AbhBCN7S (ORCPT ); Wed, 3 Feb 2021 08:59:18 -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.