All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: LKML <linux-kernel@vger.kernel.org>,
	Linux FS Devel <linux-fsdevel@vger.kernel.org>,
	Al Viro <viro@ZenIV.linux.org.uk>,
	David Howells <dhowells@redhat.com>
Subject: [PATCH -next] fs: fix namespace.c build error when CONFIG_MOUNT_NOTIFICATIONS is not set
Date: Fri, 15 May 2020 09:54:28 -0700	[thread overview]
Message-ID: <f1ada6bd-5d57-eaf2-f834-9975361b2a21@infradead.org> (raw)

From: Randy Dunlap <rdunlap@infradead.org>

Fix build error when CONFIG_MOUNT_NOTIFICATIONS is not set/enabled.

../fs/namespace.c:4320:42: error: 'struct mount' has no member named 'mnt_topology_changes'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>
Cc: linux-fsdevel@vger.kernel.org
---
 fs/namespace.c |    4 ++++
 1 file changed, 4 insertions(+)

--- linux-next-20200515.orig/fs/namespace.c
+++ linux-next-20200515/fs/namespace.c
@@ -4317,7 +4317,11 @@ int fsinfo_generic_mount_topology(struct
 
 	m = real_mount(path->mnt);
 
+#ifdef CONFIG_MOUNT_NOTIFICATIONS
 	p->mnt_topology_changes	= atomic_read(&m->mnt_topology_changes);
+#else
+	p->mnt_topology_changes	= 0;
+#endif
 	p->parent_id = m->mnt_parent->mnt_id;
 
 	if (path->mnt == root.mnt) {


                 reply	other threads:[~2020-05-15 16:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f1ada6bd-5d57-eaf2-f834-9975361b2a21@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=dhowells@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@ZenIV.linux.org.uk \
    --subject='Re: [PATCH -next] fs: fix namespace.c build error when CONFIG_MOUNT_NOTIFICATIONS is not set' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.