Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2978829pxa; Tue, 18 Aug 2020 03:20:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuvpfgyppQA8k4y+K9Xe/vhPqnBwrpM9OlqtVP+ZobJWTBRVaXVDLtA2w2XeIjI+hZoIJN X-Received: by 2002:a05:6402:1151:: with SMTP id g17mr14860371edw.227.1597746013921; Tue, 18 Aug 2020 03:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597746013; cv=none; d=google.com; s=arc-20160816; b=KMBzfStZ196WJJWndsQ98REtTHEo3wjU32RDCRuYaM23ebRVeg2UhjQchsGVankaQr D1rnhiDjFl07fvuJWFmUf/iD76mg9Sw+9wtH36Rgmhb/kbZ7cjOljJqUpLi9FfhFqLb8 NjFUB+AZsz2oWTvZgrUIy+CSuXkB2nWnq6KE/c67JC601tQagKRxfIkLcOKNd+Nw1p02 DYJLDwRv+yUUY+YUzQj8sZT8Cy07HtaC7T/6hd9CiGZTOeLkh/Qua10YI+pmFfCjiAgF Y3+ntg3V++xkwu3ckynKWpqRDgt7OXlram6b01CAMKp/Arra9Vv310mbkj+osgbeN1Z1 W4cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Lc9Qqcud0CoANRFFf1B0u5Fr41+sTNZYD+YY2ysACSI=; b=YmHY3FcGmyMi2VLiOnwaK4t+xIx9heHj02BVI3PMCldpnTi+tbkM40DVOxGJD69Io4 2AQU6B2cpGiJDq5O3MDN8GoWNgchhETxKwV3XfZ7m2Sylm5ZDcTQ6K4wjr9xusA3Fzkj TFIJmI0NKS+kKNnlD0Ps6fqFponw/EFu+EI/mKaE6uySO33lGPNacbc8mggle7WCmBkN rFUZE/LPc3I1kuv2dTrB4l/zQVoCqs8BWrpuMGMDjIbAnguaxWlVNco2GxHe7wSyibCD 9bfUvAUsX/ky/s6RZXExfyb5tdIsenCEqrMFKC3ChscTPdnEMeOgA2ZI7LVUVJSZM9L0 57Pg== ARC-Authentication-Results: i=1; mx.google.com; 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 k17si12974959ejv.169.2020.08.18.03.19.49; Tue, 18 Aug 2020 03:20:13 -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; 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 S1726662AbgHRKRL (ORCPT + 99 others); Tue, 18 Aug 2020 06:17:11 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:38417 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbgHRKRL (ORCPT ); Tue, 18 Aug 2020 06:17:11 -0400 Received: from ip5f5af70b.dynamic.kabel-deutschland.de ([95.90.247.11] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1k7yg0-0001QO-TR; Tue, 18 Aug 2020 10:17:09 +0000 Date: Tue, 18 Aug 2020 12:17:07 +0200 From: Christian Brauner To: "Eric W. Biederman" Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, criu@openvz.org, bpf@vger.kernel.org, Linus Torvalds , Alexander Viro , Oleg Nesterov , Cyrill Gorcunov , Jann Horn , Kees Cook , Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= , Jeff Layton , Miklos Szeredi , Matthew Wilcox , "J. Bruce Fields" , Matthew Wilcox , Trond Myklebust , Chris Wright , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh Subject: Re: [PATCH 16/17] file: Merge __alloc_fd into alloc_fd Message-ID: <20200818101707.a3ikaqkpxrkcqcdr@wittgenstein> References: <87ft8l6ic3.fsf@x220.int.ebiederm.org> <20200817220425.9389-16-ebiederm@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200817220425.9389-16-ebiederm@xmission.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 17, 2020 at 05:04:24PM -0500, Eric W. Biederman wrote: > The function __alloc_fd was added to support binder[1]. With binder > fixed[2] there are no more users. Further with get_files_struct > removed there can be no more users of __alloc_fd that pass anything > except current->files. > > As alloc_fd just calls __alloc_fd with "files=current->files", > merge them together by transforming the files parameter into a > ocal variable initialized to current->files. > > [1] dcfadfa4ec5a ("new helper: __alloc_fd()") > [2] 44d8047f1d87 ("binder: use standard functions to allocate fds") > Signed-off-by: "Eric W. Biederman" > --- Acked-by: Christian Brauner