Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp156339ybj; Fri, 8 May 2020 08:38:24 -0700 (PDT) X-Google-Smtp-Source: APiQypIGuddJVrP2zAwNmKY7MmWn0ltlT3/5YbPRnHl+VaBiWSCnHAh/d+uk+Ajvn4qj5b1Vvsz+ X-Received: by 2002:a17:906:909:: with SMTP id i9mr2231363ejd.347.1588952304214; Fri, 08 May 2020 08:38:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588952304; cv=none; d=google.com; s=arc-20160816; b=og3IhslJbIkaIrmobh2Jvvrvf6A7NiB+eA51xKbzKXJ2HuiWc2D1jEVyTDYUkbR6GT TWOJjKWaK8B7FmjbkAAujONd5lHFu4NXoSa2R/kJVaTGpmaZ7K9wwQGXKUg5pDkKR0lC 1j6CjAwMU777aKna88lIhDdcrLoJYcLx9Vu3yoJPoIvJL/ZxuSxtqq0iTwIlM+u/vvKA GbuJRRsapO847yEy2q22kx8faRTsiQMInFzWSGobS8/qk/LcdAsVWkZphSLa7IhCIZHQ 1jotQRw+eBByNaFOutfqNENyt6RpN1BIpg3XKAg6qQpiKuCpUAJ0Mvo0YfxnPdhnfUQd tjPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=JYdyu02dksbSjvmwcDV7qt06YZ68oFogfc0H7mUbdmw=; b=u+p8si3oj7GdxEuzXMmFfo9dsfSTNOcdm7km+x8Kc8yUCCuw2Vih2h79Mwl5RQSUnR EoTEAwukFw+o+ZE9qNWI4T3/W6WRwBnISkBj5gYW/yuU8LFGo+VHQjo2QH+p+2KSdi2a EmjSrTOfzTyd6jrkXh8xFxGfNCKlllOvHrX5jwlCTtD+Qo2q+ovzgkIQFydxh8xw+H28 QfUJdK1vWtlRcusEiBbCvWUb3Y591X7rJh2T57FfUGLXtut0Iw0pCwRTR56/IMoILvXf dtq4eMHkCAC2i0aCHuqKuZZy7K60Qysq07KAo5YujtbYX09CNlbUOrPpOG9e6dYzBLsO 8YYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qjaMFrDy; 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 k7si1035808eji.41.2020.05.08.08.38.01; Fri, 08 May 2020 08:38:24 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qjaMFrDy; 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 S1727788AbgEHPgj (ORCPT + 99 others); Fri, 8 May 2020 11:36:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbgEHPgi (ORCPT ); Fri, 8 May 2020 11:36:38 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C809C061A0C; Fri, 8 May 2020 08:36:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=JYdyu02dksbSjvmwcDV7qt06YZ68oFogfc0H7mUbdmw=; b=qjaMFrDyUaIDFFR/VB6EcmHWKy i7SNi7MXJSxWZd67zL2J2Gh5qxlCPOfUB/brJjc9qw0qCSj+PTbugVE9jz0KiQ2oqhxOOa8aTHUQ3 ThGxZkMVHc76uL6GbcUHqnVe+rTIi7sL59bJ6sJz6aiCsH++7jcarqChqxpRdgsZYeVS8o0yd6Mnz 6o3XSSDb1dwZLKBmGh1LxpTwE4WFuM/rtR3AP/6d+yxVs+OqH4P//yiYxaw74Q9XxEu9VqkFPaoA1 3p7q9DDeka6ZIKq2wx1h4PJO2yBoVi5v5BL7kWCpFCNkfv+nhQ5AQ+dr/XVDRLLmJjiHT/JqVD5j9 UeqibLWg==; Received: from [2001:4bb8:180:9d3f:90d7:9df8:7cd:3504] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jX53F-00046s-CU; Fri, 08 May 2020 15:36:37 +0000 From: Christoph Hellwig To: Alexander Viro Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, kvm@vger.kernel.org, linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Add a __anon_inode_getfd helper Date: Fri, 8 May 2020 17:36:22 +0200 Message-Id: <20200508153634.249933-1-hch@lst.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Al, this series (against your work.epoll branch), adds a new __anon_inode_getfd helper, which exposes the functionality in anon_inode_getfd minus installing the file descriptor. This allows to clean up a lot of the places that currently open code the functionality.