Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2654376ybg; Thu, 24 Oct 2019 13:06:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzE8la/0NoIPze7qIdp0Q/gyrwgPDQoj+rsURaxafepOHmbeiwQ4q0xCGx2zj59RwurGWRu X-Received: by 2002:a17:906:6d4f:: with SMTP id a15mr20560146ejt.33.1571947560738; Thu, 24 Oct 2019 13:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571947560; cv=none; d=google.com; s=arc-20160816; b=o/sdUbxkGPqTbCJhMRYLEHcBFliuCD9xyXVsdjEzc/pFUNc1WZRwPx9c15NlSA7cdX quGn6IidCjSykXY2+P1gQlMaHoUiXN3bqzactVWuaVpmTD4b/0fntaS4kjXcxxvyqzm3 JWGKhZZNlVIMzTxuv1fu+51S0JkSqZGgz5YqAqPlBnHzX1ee1lPSapMpYGUvPH24tuJv z/bzsD9e6s6FuHAqYP9FF5eizWIVhmXn1IotSKYO83DKNDzuBuPbyfsF+7j8OC+Eaxpa JVo6hsDDT6e5+nnZHUr0RPStNlLOX6rOL/fjiZSY1nbCJmEHqf411k6RkUWbkhW3qLR4 D+Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Qp4ylpFjT2NK5D3YlCPCDZfnUsSpfLeB6JcWlmTT8JE=; b=n+QTRxaK7E9AsS0CdXrRjP15+VE7I49SqEWG6uths5wlgc4wrvrzHDfl6yNr/J2iYL af/33wZl0TY0Xz/n0tr2+8ppk0qEuix+YCuica85NQXNtEo/55f0YLGulGgfOroVXa9/ YMIwYa7MJNnrC1PdT4MN1qa9/ekysbBhY541XN0Nbrw2j7n7xi43YyFpf211hbkMC4VX 354B7YJ1Ib/fEf3Gbhhq6EJi+vihK8TkyUhMjTgX1jayJSNU9tifX4HBnAPyhC7moPBz X+jSBtgOcaBSYmjmm+JBNbtlMB5utXDF7YyEGkJ5/k3nqN65d+N1svsVjKhjxsbSRsh9 Pjrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f+iU1lVJ; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb5si9884910ejb.270.2019.10.24.13.05.25; Thu, 24 Oct 2019 13:06:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f+iU1lVJ; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408357AbfJXE5Q (ORCPT + 99 others); Thu, 24 Oct 2019 00:57:16 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:41658 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725298AbfJXE5Q (ORCPT ); Thu, 24 Oct 2019 00:57:16 -0400 Received: by mail-yw1-f68.google.com with SMTP id o195so3404768ywd.8; Wed, 23 Oct 2019 21:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qp4ylpFjT2NK5D3YlCPCDZfnUsSpfLeB6JcWlmTT8JE=; b=f+iU1lVJ+8MXE0YjXhbzT4Z+QZTKEVbpSj7I64WEMcxAgcUOKckEALuDnxjfop1KDz /GEuxtdqM/gAmg/8rUQcbM54P8ZvUqXo23LCox8OZKBVBlVoDn1p5gmEXxfQnAWBfBHW uZZaGVOWsT//cwHGlbqENLvAYitmYf5NxnxRGYapcBJVSV1rP+NlFCXZHqVZ6fsYCVwo HiL1fAZTVAeLbnNXS5YnMp44jrRgVnpRxhkGyVWlHqmqFFsCMZbuTBKjna3CheOTh8v8 hD6hfXAtyLGGlQqfHMdlsFiQ1XgpXWIL5nune/Pgn/JF3P1WqL13u+LVKHRsnQpi/3uP Pzow== 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=Qp4ylpFjT2NK5D3YlCPCDZfnUsSpfLeB6JcWlmTT8JE=; b=t2MGTIc8mTc7xW5/p/CK16Ve9OEKmiR3Bt1eoB5Z7AoMwDnIldppJFs4AQlRg5rSTa q12+rvFQWnsBdLRSERRYnp2UD56h9Ed7dygSLlsN0K+KpagF9fNJEIyKLAZLanO3WOPf xM/lf7xUbla/jk3vlTj9s1KC4BPrPrpH5tFKq9eB/9V+W/lhbBMXJOZIyvrB5aDeJJ6t C+eN3/HhTt2oLPFy4NmgSsOa9Izgi1LmAXlmxlOybOx4Ju3ogFv6LeWPgiB0NsBh1iZd fM7e68NeYec1KF3EY1ABYuene9koRVfxcXINUYEd59XIU70IQZHgjxsu/Ak2dZoAh9dB jjbg== X-Gm-Message-State: APjAAAX2taqOZp6Wh4uI+eNoiHVcayhSQURKPdVWJQhiiAase5zce9Le cDp9IVjonZ/SxmlpoPcPLJDkSfLsNotmk4dR8To= X-Received: by 2002:a81:6c58:: with SMTP id h85mr5010753ywc.88.1571893034732; Wed, 23 Oct 2019 21:57:14 -0700 (PDT) MIME-Version: 1.0 References: <20191022204453.97058-1-salyzyn@android.com> <20191022204453.97058-2-salyzyn@android.com> <8CE5B6E8-DCB7-4F0B-91C1-48030947F585@dilger.ca> In-Reply-To: <8CE5B6E8-DCB7-4F0B-91C1-48030947F585@dilger.ca> From: Amir Goldstein Date: Thu, 24 Oct 2019 07:57:03 +0300 Message-ID: Subject: Re: [PATCH v14 1/5] Add flags option to get xattr method paired to __vfs_getxattr To: Andreas Dilger Cc: Mark Salyzyn , Greg Kroah-Hartman , Linux Kernel Mailing List , linux-doc@vger.kernel.org, CIFS , kernel-team@android.com, selinux@vger.kernel.org, Linux FS-devel Mailing List , Jonathan Corbet , Ext4 Developers List , Stephen Smalley , overlayfs , Andreas Gruenbacher , ecryptfs@vger.kernel.org, LSM List , Alexander Viro , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org [excessive CC list reduced] On Wed, Oct 23, 2019 at 11:07 AM Andreas Dilger via samba-technical wrote: > > > On Oct 22, 2019, at 2:44 PM, Mark Salyzyn wrote: > > > > Replace arguments for get and set xattr methods, and __vfs_getxattr > > and __vfs_setaxtr functions with a reference to the following now > > common argument structure: > > > > struct xattr_gs_args { > > struct dentry *dentry; > > struct inode *inode; > > const char *name; > > union { > > void *buffer; > > const void *value; > > }; > > size_t size; > > int flags; > > }; > > > Mark, > > > > I do not see the first patch on fsdevel > > and I am confused from all the suggested APIs > > I recall Christoph's comment on v8 for not using xattr_gs_args > > and just adding flags to existing get() method. > > I agree to that comment. > > As already responded, third (?) patch version was like that, The problem is that because of the waaay too long CC list, most revisions of the patch and discussion were bounced from fsdevel, most emails I did not get and cannot find in archives, so the discussion around them is not productive. Please resend patch to fsdevel discarding the auto added CC list of all fs maintainers. > gregkh@ > said it passed the limit for number of arguments, is looking a bit silly Well, you just matched get() to set() args list, so this is not a strong argument IMO. > (my paraphrase), and that it should be passed as a structure. Two others > agreed. We gained because both set and get use the same structure after > this change (this allows a simplified read-modify-write cycle). That sounds like a nice benefit if this was user API, but are there any kernel users that intend to make use of that read-modify-write cycle? I don't think so. > > We will need a quorum on this, 3 (structure) to 2 (flag) now (but really > basically between Greg and Christoph?). Coding style issue: Add a flag, > or switch to a common xattr argument structure? > IIRC, Christoph was asking why the silly struct and not simply add flags (as did I). He probably did not see Greg's comments due to the list bounce issue. If I read your second hand description of Greg's reaction correctly, it doesn't sound so strong opinionated as well. Me, I can live with flags or struct - I don't care, but... Be prepared that if you are going ahead with struct you are going to suffer from bike shedding, which has already started and you will be instructed (just now) to also fix all the relevant and missing Documentation. If, on the other hand, you can get Greg and the rest to concede to adding flags arg and match get() arg list to set() arg list, you will have a much easier job and the patch line count, especially in fs code will be *much* smaller - just saying. Thanks, Amir.