Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1494484ybt; Thu, 9 Jul 2020 08:21:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMh/Z8JXwpMzi3rr9Hg2aHcQdZ6BYPTA1sL2cCYCXUjaK9jbG0rpR5RjfSuhhDb03s7pHE X-Received: by 2002:a50:9605:: with SMTP id y5mr20392529eda.388.1594308078842; Thu, 09 Jul 2020 08:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594308078; cv=none; d=google.com; s=arc-20160816; b=CpDGkEg9DvKsZs67D/waUc08dW9n7xnFtKM0MZi/guHjMfhz6rc/eScMQchL5718+A PpaRremshTsPAP7WHbBX2cAnOHHnGcud5N1oSu09UbAlHNRnNtTM/naq5ytYHaAv4npk R5L11v8ljWKMzzFav8E7znHdluKXwDmSUn+nj9la5p3w+g0hVXpmuDFd03rvo5iaw65y lNfY3pAAvGZKp3qXeh0jH/e0L0URicGCP9ptP5bLBGeQBg6/oWNRT+d3dDE5ia77RWPB YgfYMhjySVg0XIHn+mmd3OlUaESl8E8tp/DQu7rPbS7ppPwniHJwDObGLNt+kjmohIG3 YJiQ== 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=s9fW2QPvoy1mcA7ve1JdCIVHxc5trSIbAV9MvcAFbd0=; b=YKTHHhJjJXtKLbSACOAzJjbpxbwK8OJxArhJeyHHC38fYxWW87RQiVrC5zqOYINKI8 a/FuGIvm2CclfqbLkLyVuwAhznlGG51RaCA6hIEn/l0IroAsBQyYWvQtP4Qpto/86kVL X6PkYcFHGu/CfbpnwyLbKIEQpMyCkbushmPQcO2ThE1wCc/YGMXAw16fwMuaM5QQvdCP g98sxRs9SiOkJsa79im7BeNdRzrQW+6IFQSBSkavIGRF3kpn7O5537Xc9SA9Zwm9dvAm 68CNUQME/M/wm2MxzfxPPQxbPt5WzR+EyHkVHw8Kz8uYwmjPQzLTZZmVLUKyQDfyC4Rz FTkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=OP1+pQE6; 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 l13si2185454ejk.170.2020.07.09.08.20.56; Thu, 09 Jul 2020 08:21:18 -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=casper.20170209 header.b=OP1+pQE6; 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 S1727814AbgGIPSU (ORCPT + 99 others); Thu, 9 Jul 2020 11:18:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726410AbgGIPST (ORCPT ); Thu, 9 Jul 2020 11:18:19 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AD01C08C5CE; Thu, 9 Jul 2020 08:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=s9fW2QPvoy1mcA7ve1JdCIVHxc5trSIbAV9MvcAFbd0=; b=OP1+pQE6Je/IEH9QagnzBdZsnv 8Zd8zpznJtYY95rcFrqrlh045tWdcsSB9gLuzaPIKOxhVm/ay2tGjuw8YrD8mKvcJNgxOLx1J3Aa+ TZF0j1rewa8MmFS57NyFUiBNGN4yCaYiWff0rUZVnJLJndbgy7gEzep5wZlA83xtIxOI5dmV1YNQQ HhxSMPSM743PeP0i5U86Ork8rv0NaQeZJIbvFJk8IcRnZRdL2kJMSA7hhRsY+VKtA3X2RSZaAf8SM 4X2xe9L7SDbf5aOtVmCg3iSiBXATxKhYgUqQ5YdWwX59Tp5r3u1ACWrfbMrEErSQMam9ujXzHr05x DzNJtdVg==; Received: from [2001:4bb8:188:5f50:7053:304b:bf82:82cf] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtYJT-0005Jr-6A; Thu, 09 Jul 2020 15:18:16 +0000 From: Christoph Hellwig To: linux-kernel@vger.kernel.org Cc: "H. Peter Anvin" , Song Liu , Al Viro , Linus Torvalds , linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: decruft the early init / initrd / initramfs code v2 Date: Thu, 9 Jul 2020 17:17:57 +0200 Message-Id: <20200709151814.110422-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 casper.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 all, this series starts to move the early init code away from requiring KERNEL_DS to be implicitly set during early startup. It does so by first removing legacy unused cruft, and the switches away the code from struct file based APIs to our more usual in-kernel APIs. There is no really good tree for this, so if there are no objections I'd like to set up a new one for linux-next. Git tree: git://git.infradead.org/users/hch/misc.git init-user-pointers Gitweb: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/init-user-pointers Changes since v1: - add a patch to deprecated "classic" initrd support Diffstat: b/arch/arm/kernel/atags_parse.c | 2 b/arch/sh/kernel/setup.c | 2 b/arch/sparc/kernel/setup_32.c | 2 b/arch/sparc/kernel/setup_64.c | 2 b/arch/x86/kernel/setup.c | 2 b/drivers/md/Makefile | 3 b/drivers/md/md-autodetect.c | 239 ++++++++++++++++++---------------------- b/drivers/md/md.c | 34 +---- b/drivers/md/md.h | 10 + b/fs/file.c | 7 - b/fs/open.c | 18 +-- b/fs/read_write.c | 2 b/fs/readdir.c | 11 - b/include/linux/initrd.h | 6 - b/include/linux/raid/detect.h | 8 + b/include/linux/syscalls.h | 16 -- b/init/Makefile | 1 b/init/do_mounts.c | 70 +---------- b/init/do_mounts.h | 21 --- b/init/do_mounts_initrd.c | 13 -- b/init/do_mounts_rd.c | 102 +++++++---------- b/init/initramfs.c | 103 +++++------------ b/init/main.c | 16 +- include/linux/raid/md_u.h | 13 -- 24 files changed, 251 insertions(+), 452 deletions(-)