Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4368005imm; Mon, 30 Jul 2018 13:20:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfleyd1Fyc9k+MM+kNBCKxgvlqXsgTfwRWRkb74sGwccOQlPXURlMHLZ0RkUwx8WeTj8qfI X-Received: by 2002:a63:b213:: with SMTP id x19-v6mr17549636pge.393.1532982051731; Mon, 30 Jul 2018 13:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532982051; cv=none; d=google.com; s=arc-20160816; b=GFjv9zJUZ7eAG5N5/MJ8t/2mOVt9YiHtildCFayeH2dvFMI9Z1tBNXCxjv6lC4OzAd LudlauRD4ZoFpHtc7Vu4r5nY28nvO2wAIayjVhmv/NY/2VyZROg9zsGfpDJJhFZPI3up KYqxIZrVMJbdYYTjM5WSMdoxk7JsmXGa2JPg0VY6Q87AxuRvuR5rK9KFUxjCtZyzNMoe kikQ2jEAQqeYamo+ebPVP3/D8nWpSVh2GTJNCrIeyOypEV/+7P3zeKA06m7nbMN9ThAn kLcoEgmCDiHVNPZZ8s5bYBuINElH7gy5snwb1VY6LAUfaSus9nnY6u+yN9sZORrhkWfo Roag== 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:dkim-signature:arc-authentication-results; bh=0jzlo2XvfdBx4uTUgZbKywXhhgTkV69hkAyYmocRTRA=; b=ECtY++omYGJ9Rn968qk2q2j2WMvr1Zduyn7W9h0VIKyhPUHval+lJupb156fYROruy yWydC+kGQVBOrQ79NT3sRb8UCEY15gyHoBZJw3kNXgxty7cUAA12Aq9xILO5cjxMNeHR nWGfKho2vw3PSp95mJxSHeUc7zfR1iFw0iCiadnjckmVoRu5TKZEoG54R29nRlvrPSse J+1J3hqbb5woYH9HaG43PQdAt9qNv83Ag1hFDHH9fUUmWQ1kHiEiYhFwaWqGpH37RK8a fjarPR/I3B0Xbo+m4lZCLLLqrtwtFQhe/4jqlEoeBlbQNx6GULp68VwaasS1In3USmLj 3bUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HWKc7qEy; 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 y62-v6si12144385pfd.254.2018.07.30.13.20.37; Mon, 30 Jul 2018 13:20:51 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HWKc7qEy; 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 S1731958AbeG3V43 (ORCPT + 99 others); Mon, 30 Jul 2018 17:56:29 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54572 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730613AbeG3V42 (ORCPT ); Mon, 30 Jul 2018 17:56:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=0jzlo2XvfdBx4uTUgZbKywXhhgTkV69hkAyYmocRTRA=; b=HWKc7qEyuSuGW8AhLVC/lE4K6 HG1lIuGtRaYQNbMKNOPOThay6CvTk289UglXOso/Z2JH7hKwKbYm00q5i/W5LFfaFUU8mMGgNo+k0 +yZC3ctpWisUqtLRlddXXINj2rEbSmx35KEpcwM56rKAjxzpok0b71DsEkdmw8Jcr47Krxh7rVUtA WBDLhYJh0InmJ2mCorQrXLRdQ4wZVExp9W4Fwq/u6hTqAtbxicPNFSI0S/ER+5OpYPGctdryE5fAW VnBcWVeFSDADmomtIgzH9GuEGSd0iVVTnwQplfV2iv3p5CAn9XviYAEyDdBkjkNzbxdwa/Y2OlEaA 9bcCaR65A==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkEdv-00052c-KM; Mon, 30 Jul 2018 20:19:47 +0000 Date: Mon, 30 Jul 2018 13:19:47 -0700 From: Matthew Wilcox To: Christian Brauner Cc: Christoph Hellwig , viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, arve@android.com, tkjos@android.com, maco@android.com, rlove@google.com, ben@decadent.org.uk Subject: Re: [RFC PATCH 0/4] file: export functions for binder module Message-ID: <20180730201947.GB12962@bombadil.infradead.org> References: <20180730143710.14413-1-christian@brauner.io> <20180730163452.GE27761@infradead.org> <20180730201224.GA1081@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180730201224.GA1081@mailbox.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 30, 2018 at 10:12:24PM +0200, Christian Brauner wrote: > > I don't expect this patch to be mergeable but rather to kick-off a > > discussion if we can either simply export them as they are or how we can > > get supportable exports that allow access to struct files_struct. > > Maybe that wasn't obvious from the first message. Is there any way we > can come up with a way to have versions of these functions that you > would be fine with exporting? > The point is that otherwise we would have to either duplicate the code > or come up with something way more complex. If you have any pointer that > would already help. He said in the first reply this should probably be using an anonfd. If you do that, I think all four of these exports go away. And there was really no reason to post each of the four exports as separate patches. That just makes review harder on everyone.