From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CCCFC43603 for ; Thu, 12 Dec 2019 18:38:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5BD252073D for ; Thu, 12 Dec 2019 18:38:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730563AbfLLSiv (ORCPT ); Thu, 12 Dec 2019 13:38:51 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:52402 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730511AbfLLSiu (ORCPT ); Thu, 12 Dec 2019 13:38:50 -0500 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifTMO-0001jZ-7r; Thu, 12 Dec 2019 18:38:48 +0000 Date: Thu, 12 Dec 2019 18:38:48 +0000 From: Al Viro To: Dominik Brodowski Cc: Linus Torvalds , Ingo Molnar , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] fs: remove ksys_dup() Message-ID: <20191212183848.GJ4203@ZenIV.linux.org.uk> References: <20191212140752.347520-1-linux@dominikbrodowski.net> <20191212140752.347520-3-linux@dominikbrodowski.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191212140752.347520-3-linux@dominikbrodowski.net> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 12, 2019 at 03:07:52PM +0100, Dominik Brodowski wrote: > ksys_dup() is used only at one place in the kernel, namely to duplicate > fd 0 of /dev/console to stdout and stderr. The same functionality can be > achieved by using functions already available within the kernel namespace. Let's not expose the kernel guts to init/*.c more than absolutely unavoidable.