Message ID | f1ada6bd-5d57-eaf2-f834-9975361b2a21@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [-next] fs: fix namespace.c build error when CONFIG_MOUNT_NOTIFICATIONS is not set | expand |
--- 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) {