Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1069311imm; Fri, 27 Jul 2018 10:35:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf4GTOpi108jzK0t5U5XCQm4aaie33s7Aj1Hob0qHJ3kWu4idagwK5uUl3lAaA2PbCx3DYL X-Received: by 2002:a17:902:5381:: with SMTP id c1-v6mr6742938pli.201.1532712958886; Fri, 27 Jul 2018 10:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532712958; cv=none; d=google.com; s=arc-20160816; b=c2g8PfCsMe1ybCLlyVjl7ELipHgXQ/+fWgALld1pIuDwlO4mIsl4CLg233kFzdmgmT mB2xPYqgEPfM+HDZDAS7+zx1Vo8Y9CMzX6Ctp8LrHMZOh1rDn7lakFsd/LuV6WOd+A7d yoxv91ahPkZidX2eoiztO6EBi6h4p+QgcT3hqfW+NiePhujrIyo6AVeL3W/bNfF/7CFD /uiPzKgoQUJ6EHWTQDJG1lQGXvpdwsPoHbYwcNkcHy2aeeejcmuDzUEmox7iD7tFo7dm zjLnrRtfhUorG0X/9JFeRcblEYbHksbGnEAZgt4sPdjGY+5bO0V5vgt6gynREasUpghz KWHg== 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 :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:organization:arc-authentication-results; bh=9Ei4geWxv5PGByb0khlFe4lEiP2DQOOXalAyOf4Yd+s=; b=SkxWTxYB2n5SRXKl3ph4ATdoihZlMyRGc80w5Y+VaQ80gCNpO9querkLypICA79Uye zbDtKdYR3lYs4PmncauRwIv97hmcqgm7k6cZyoWrBpZeBkf2uSza95BlyxlJMuiEAZTI 9ZggNdg8S4QmrJC4LLFmeEy0cUYLCdXAKBPQ1y9qpGGShVWWrX8cla79MGa+WLhuRCK7 uhITRqic8EpvfyrOk4LyxTi9lXLMzSp5XwIvNB8Kee79Ad4mV/N/Y7A9pZELpIyf/hoy Dmq10kqhiC9oRg1lskYIbw0B4sV1dIy4yF/TcddAjwFvgGpYja7WJtf3qcnQiz91zq3g Wz3A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10-v6si4494261pfd.86.2018.07.27.10.35.44; Fri, 27 Jul 2018 10:35:58 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389707AbeG0S5F (ORCPT + 99 others); Fri, 27 Jul 2018 14:57:05 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46732 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388999AbeG0S5F (ORCPT ); Fri, 27 Jul 2018 14:57:05 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7A251406E968; Fri, 27 Jul 2018 17:34:11 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-116.rdu2.redhat.com [10.10.120.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id D18951102E29; Fri, 27 Jul 2018 17:34:10 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 25/38] Make anon_inodes unconditional [ver #10] From: David Howells To: viro@zeniv.linux.org.uk Cc: torvalds@linux-foundation.org, dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 27 Jul 2018 18:34:10 +0100 Message-ID: <153271285037.9458.9583418913241630415.stgit@warthog.procyon.org.uk> In-Reply-To: <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> References: <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> User-Agent: StGit/unknown-version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 27 Jul 2018 17:34:11 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 27 Jul 2018 17:34:11 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make the anon_inodes facility unconditional so that it can be used by core VFS code. Signed-off-by: David Howells --- fs/Makefile | 2 +- init/Kconfig | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/fs/Makefile b/fs/Makefile index 9a0b8003f069..ae681523b4b1 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -25,7 +25,7 @@ obj-$(CONFIG_PROC_FS) += proc_namespace.o obj-y += notify/ obj-$(CONFIG_EPOLL) += eventpoll.o -obj-$(CONFIG_ANON_INODES) += anon_inodes.o +obj-y += anon_inodes.o obj-$(CONFIG_SIGNALFD) += signalfd.o obj-$(CONFIG_TIMERFD) += timerfd.o obj-$(CONFIG_EVENTFD) += eventfd.o diff --git a/init/Kconfig b/init/Kconfig index 5a52f07259a2..d8303f4af5d2 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1066,9 +1066,6 @@ config LD_DEAD_CODE_DATA_ELIMINATION config SYSCTL bool -config ANON_INODES - bool - config HAVE_UID16 bool @@ -1273,14 +1270,12 @@ config HAVE_FUTEX_CMPXCHG config EPOLL bool "Enable eventpoll support" if EXPERT default y - select ANON_INODES help Disabling this option will cause the kernel to be built without support for epoll family of system calls. config SIGNALFD bool "Enable signalfd() system call" if EXPERT - select ANON_INODES default y help Enable the signalfd() system call that allows to receive signals @@ -1290,7 +1285,6 @@ config SIGNALFD config TIMERFD bool "Enable timerfd() system call" if EXPERT - select ANON_INODES default y help Enable the timerfd() system call that allows to receive timer @@ -1300,7 +1294,6 @@ config TIMERFD config EVENTFD bool "Enable eventfd() system call" if EXPERT - select ANON_INODES default y help Enable the eventfd() system call that allows to receive both @@ -1414,7 +1407,6 @@ config KALLSYMS_BASE_RELATIVE # syscall, maps, verifier config BPF_SYSCALL bool "Enable bpf() system call" - select ANON_INODES select BPF select IRQ_WORK default n @@ -1431,7 +1423,6 @@ config BPF_JIT_ALWAYS_ON config USERFAULTFD bool "Enable userfaultfd() system call" - select ANON_INODES depends on MMU help Enable the userfaultfd() system call that allows to intercept and @@ -1498,7 +1489,6 @@ config PERF_EVENTS bool "Kernel performance events and counters" default y if PROFILING depends on HAVE_PERF_EVENTS - select ANON_INODES select IRQ_WORK select SRCU help