Linux-Fsdevel Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH -next] fs: fix namespace.c build error when CONFIG_MOUNT_NOTIFICATIONS is not set
@ 2020-05-15 16:54 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2020-05-15 16:54 UTC (permalink / raw)
  To: LKML, Linux FS Devel, Al Viro, David Howells

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) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-15 16:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-15 16:54 [PATCH -next] fs: fix namespace.c build error when CONFIG_MOUNT_NOTIFICATIONS is not set Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).