Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2640950imm; Sat, 9 Jun 2018 21:37:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIoN3uhmqk6FFcft+Lxye/d77SRHUIvcrXu5HT40pgY5hh0u58IumB8nDMzhqCob3rMcEBz X-Received: by 2002:a17:902:3343:: with SMTP id a61-v6mr12949228plc.241.1528605465692; Sat, 09 Jun 2018 21:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528605465; cv=none; d=google.com; s=arc-20160816; b=BDz52+RTBgqCXAHyT5eseMbF1W+4fKNcWSYDi+ry7sUmjc+fl6ttG1MYTXSyKlu6be 5+p+w1/c5fUof3rIMr0b1va2rnuR/OGzrENw4ZAPut4qp78xK5B+UNCEc1ylJucEoNy7 zoElN1leDE5wh0D7jbEhjWakhk8eTBD5lS3oYR51WahfU639XAB/eeIMc2WvIPPjEMia urgWLHkcEuS463FQzLlln11q6rRXH+Y5hEX8cSJqlnDctK7pk0LB1L+Rv6YH8a4POLi0 YEJlIgljZtywkJg1JB8G/SbOa9f7CNxEmTn4bif0oAaAUrD2nWOpRDmW10wQpeJoLY2Q o3bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=N1hviET3d5ImjBicjJe8tlbiXYqSwJwiDM/lzYqzxDw=; b=dkQACZulCc7Jz8mDaIzeQGvmdiEG04QdMpB1UQpHGc7KgwgSyhFxJ9wkqLcAwjy+nZ FSuD5Wbh7P7vXnpWhvbHcg22DEAm10kRAjJN2Kt+aDA4KJ9PCg3xnxUJCdAZJ6tTCtXH 0nOeXccfz/VD4I/i6OC8dPN1rcBou+34+V9zMcQo9/Y4wIzK6FyG66d2LiJuyW1Dia9n IImr984cM732YN3sNx75xizbTS9uWC4GkKoBO1I3bn4SvWSdW0nG61IV9GgyjNIeK8J8 knYCzmronfqoPN0b/6LGT3ZwAWruz54rlC4GdV9F7tPLJrxdEiOt6bEFSPTI9hs0e89C zbVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11-v6si47626444pgv.661.2018.06.09.21.37.19; Sat, 09 Jun 2018 21:37:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753540AbeFJEgr (ORCPT + 99 others); Sun, 10 Jun 2018 00:36:47 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:53530 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146AbeFJEgq (ORCPT ); Sun, 10 Jun 2018 00:36:46 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fRs5S-0002Pz-Dw; Sun, 10 Jun 2018 04:36:20 +0000 Date: Sun, 10 Jun 2018 05:36:17 +0100 From: Al Viro To: Christoph Hellwig Cc: Miklos Szeredi , linux-unionfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/39] vfs: add path_open() Message-ID: <20180610043610.GK30522@ZenIV.linux.org.uk> References: <20180529144339.16538-1-mszeredi@redhat.com> <20180529144339.16538-5-mszeredi@redhat.com> <20180604084609.GC11333@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180604084609.GC11333@infradead.org> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 04, 2018 at 01:46:09AM -0700, Christoph Hellwig wrote: > > +EXPORT_SYMBOL(path_open); > > EXPORT_SYMBOL_GPL, please. No. If interface makes sense, export it. If it doens't, don't. Don't mix "it's a shit API, but we need it for some in-kernel module" with "out-of-tree code should be GPL, especially if it uses this". For non-trivial work I will, teeth gritting, accept that kind of stuff. For anything as trivial as this - fuck, no. In this particular case, it *is* a dubious API - AFAICS, ovl_open_realfile() could just pass vfsmount/dentry from the right layer to vfs_open(). We might or might not need path_open() for the duration of the series (I hadn't looked into the PITA it would be to reorder), but it really looks like it could disappear by the end of it, along with the temporary export.