Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4027446pxb; Mon, 8 Feb 2021 06:20:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhMqE6MZbp/A2C6JxZFm5FrFD6/rdGn9x4zmAgQE9cHJ9lybEN2xCcTuznU5w840vn+uWh X-Received: by 2002:a17:906:b001:: with SMTP id v1mr17092882ejy.217.1612794044310; Mon, 08 Feb 2021 06:20:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612794044; cv=none; d=google.com; s=arc-20160816; b=CXJvKRyw+yunJ07cNqQsv8YKn7FfGfLxf1+hBo0MYJ2XbSMwFvNcTSh+yKv58tM/Aw ALghljUZETYF0nACV6RdrvFBc/0tYajqsFKX6DYplBaPyrtiKJAmIuVEK+1ff4Y8KXPb AdFJgtplqIG3HzmBsEN0GV/Lqg8H2EOzn7FuhMa3yrus+t1qcjneyHCKcTfTbHFtbMMs 9UtHq58LqfrYNvt4ZgwFPYxhE4lI/BRDPbn2cJLt8TNKJbORhiOR2C9aexJt3/ZFabrf KoeLsLlwon6+uybLok7sdI/DzPwDZxmwE3YxobKp8pvzdTf8gmv3sx01r7Thow6WWTAN aa7Q== 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=mIwF8HmqKUBLjBFyeS1Mjx7gZY+Wus4iD1MoxhHXTdc=; b=tgJDkLZLYJ8mU3Q2tl4h7SsUNC30pHFOk95ghBVLgzuFpnKvG95KOoDUwGiviKzOEv wfh6nAWy4S+osoJWdoAYtM3oU8TCRUd9C7i/8409/PsS5cVnSPo3wMNCwIxhBL70ugpF BMn6LoqUSrwAJBpNulzklX9OC/XHTvgF7I5VgTJjH7ggO5T05NbJyw7vCNsEn+VZSmAV i/4kcZOxrvAD2xQ60LhlLQQg7K7Ehizd/5WczBhge0fgT5hbbuK4bYLnC65/2m93ojUy b9X8OsUgB7OED8b9GxvOdJgOMYZzUbLf5r7DQAZsy6FZETOj19Pu7qCD0iRtMShnoScR cgzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ekWLTDck; 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 j26si9013295eds.297.2021.02.08.06.20.19; Mon, 08 Feb 2021 06:20:44 -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=ekWLTDck; 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 S230328AbhBHORi (ORCPT + 99 others); Mon, 8 Feb 2021 09:17:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232333AbhBHODG (ORCPT ); Mon, 8 Feb 2021 09:03:06 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3164CC061788; Mon, 8 Feb 2021 06:02:26 -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=mIwF8HmqKUBLjBFyeS1Mjx7gZY+Wus4iD1MoxhHXTdc=; b=ekWLTDcknhWy0j6/589jbaOVx0 LF0ACLiIM8xIUoCsjVWxirkhtfbxpSxIdt9iug61kvF+6/HThXmtNQYXHi5bZy04xAkTeZyfe5ChG Yjpq3SFRO8QnaecJcY3xadIZiw41tWlehb0S08A6qURrq9lo75fdikzL+Gc5VkhKE2k97Kb5Z7UrR mWlBkfgfe1VJ/lRB8RfZkKD1ASvGoFSNfhTTqkSZpKS5F2PREEiuXV7+kTARvQtPZSljrcmJVAHKw qunY1/GVkzBCL0Lvi6sf2cxcrak+wQZvuGNrMsCkaQDs3g2rS7ttQBcLPnetcu03f5ezFF6QWgwLl RkcNqb2g==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l977J-00637g-EP; Mon, 08 Feb 2021 14:02:18 +0000 Date: Mon, 8 Feb 2021 14:02:17 +0000 From: Matthew Wilcox To: Miklos Szeredi Cc: Dave Chinner , 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 , 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: <20210208140217.GQ308988@casper.infradead.org> References: <20210203130501.GY308988@casper.infradead.org> <20210203135827.GZ308988@casper.infradead.org> <20210203142802.GA308988@casper.infradead.org> <20210203145620.GB308988@casper.infradead.org> <20210208020002.GM4626@dread.disaster.area> 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 Mon, Feb 08, 2021 at 09:25:22AM +0100, Miklos Szeredi wrote: > On Mon, Feb 8, 2021 at 3:00 AM Dave Chinner wrote: > > > > On Wed, Feb 03, 2021 at 04:03:06PM +0100, Miklos Szeredi wrote: > > > On Wed, Feb 3, 2021 at 3:56 PM Matthew Wilcox wrote: > > > > > > > But let's talk specifics. What does CIFS need to contact the server for? > > > > Could it be cached earlier? > > > > > > I don't understand what CIFS is doing, and I don't really care. This > > > is the sort of operation where adding a couple of network roundtrips > > > so that the client can obtain the credentials required to perform the > > > operation doesn't really matter. We won't have thousands of chattr(1) > > > calls per second. > > > > Incorrect. > > Okay, I was wrong. > > Still, CIFS may very well be able to perform these operations without > a struct file. But even if it can't, I'd still only add the file > pointer as an *optional hint* from the VFS, not as the primary object > as Matthew suggested. > > I stand by my choice of /struct dentry/ as the object to pass to these > operations. Why the dentry? This is an inode operation. Why doesn't it take an inode as its primary object?