Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3818144pxb; Mon, 8 Feb 2021 00:28:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6rvf1J3JPtI1iU/25dgKiPwcrIKddig//0wMY0BQ/sqadutVpsx5/wwk1lDZGBMDGihH9 X-Received: by 2002:a50:e04d:: with SMTP id g13mr16288347edl.358.1612772880388; Mon, 08 Feb 2021 00:28:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612772880; cv=none; d=google.com; s=arc-20160816; b=Pi5cAOGJqVtkHa+nThr5jiTSXziclS3G2vaISzuBIZDvnch+3hObt21PKkwDgb0ErG 2kFEdiBbZdAmBgemiVeCAR2Xjdb2zOBxs83/VSIfOnNEFCSUWIH8+fyygFaLFACAxYzR 4xAZeglUeSfZ0dlHNHHdx0QwfkxqoYAFrdUoMyJGFuSI6ODcH6f1Nm5jClS87SMuir58 xk6YvwmjUKcnSjJE/bONxMeTIWxihAtEc5nn9HjCHIFzEC6S8S/FQJKIv4KdyyBzP6Wo HYbH12eHfbu+oyhuZwUXk768ewLbaaGahL+QBGVO3dHeNHA/XdY8FzHjvZHYBAalc1+k 4y6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WWpXNk9Y+G7a2x2FXqJab48oIcf6fRr7sg2s0g1XV/Q=; b=sIQCVKeqd+eCZQbX9lb7MP8z1I56ifZHCPHGGkzvMHFBtMQZ1dsCmLinLk0cUJV1Dt B096KQ5VKSiim53umdtXmxdLlT0X5+5kdO1n8S7x5TGnuWPcUAWUrmBL3PkAMg+XrI44 XGpYkqEAQAfZJzkyEw0rnkuc+vogIeswqW5BZ2fgG6h0PhkTaEQGW3rVN8Je1OlpUcX4 7cEmxZtbrG202396q448tHXoBvUsgC2qs9ZVZFv7LqnpFIEuzqFASpzsTMV7p6nzR2sT CtxcdxGgMYlIcwI40tXa1jxw9dQBKAYobIKs2DThT/Zur7km+ICMHsQssDO8nXbbB18L qx+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=nYdwkzee; 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 e18si10656845ejd.498.2021.02.08.00.27.37; Mon, 08 Feb 2021 00:28:00 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=nYdwkzee; 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 S230120AbhBHI0Z (ORCPT + 99 others); Mon, 8 Feb 2021 03:26:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbhBHI0P (ORCPT ); Mon, 8 Feb 2021 03:26:15 -0500 Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC7DFC06174A for ; Mon, 8 Feb 2021 00:25:34 -0800 (PST) Received: by mail-vs1-xe2e.google.com with SMTP id u127so7076217vsc.10 for ; Mon, 08 Feb 2021 00:25:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WWpXNk9Y+G7a2x2FXqJab48oIcf6fRr7sg2s0g1XV/Q=; b=nYdwkzeeU93vwWCVoAVZc1tis0j/40vIrVm7/IW7330CqTB22w5SQP24Zu+jVA3H8R 5/4DOhKaP0QncUCE5gKUNCt/BiRhi1Q0xXmO/rLXFmZztPi7QS6kBXCdkvxzUeSqI4t8 TvQLcCP4/nVLBSDmSdcer6pc/Cilsr5fDbwaQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WWpXNk9Y+G7a2x2FXqJab48oIcf6fRr7sg2s0g1XV/Q=; b=mV4A8NDcwhgdDMgAJQZn7gDHEQAOb+dL5bYKiCQGaskmozPtciHaTJwgNIaGC23Wux 4dTuNbAjb5S0ZcDaF6nn//EML4n2k1dvZOaM2ajepwsXOMogudkGxu8hrnoen/Zak9ut x5pBn2jX2rIsuigX6Tl0JF/BnFzgmpO7u/PnUWrBWViwnJv/3/IncXKVYx83R+oY2DVR hA64M55mCWYMd0LD1QvxZcBhv2IHFcjcL/ZZYc3IOUuGH9ZFi77UjS3Z3fVEvgaQY+J9 Oe6FGaskAJn8E9oXmr1h6KUAgb0MFtT5q3Od/eSqxIo3tKdqIkiMeM/Jam4Azni4PXpR Cdfw== X-Gm-Message-State: AOAM530JscT5IiOzyHVo8ivlSeWHynFkGCDCZfH+4gLTPtkkdBl3EBSF ni4MWgOAzZWlIFMqtRqR2IsgYwpXplKWxVq6D7lZDA== X-Received: by 2002:a67:ea05:: with SMTP id g5mr8896448vso.47.1612772734040; Mon, 08 Feb 2021 00:25:34 -0800 (PST) MIME-Version: 1.0 References: <20210203124112.1182614-1-mszeredi@redhat.com> <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> In-Reply-To: <20210208020002.GM4626@dread.disaster.area> From: Miklos Szeredi Date: Mon, 8 Feb 2021 09:25:22 +0100 Message-ID: Subject: Re: [PATCH 00/18] new API for FS_IOC_[GS]ETFLAGS/FS_IOC_FS[GS]ETXATTR To: Dave Chinner Cc: Matthew Wilcox , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Miklos