@@ -91,7 +91,9 @@ void notify_mount(struct mount *trigger,
n.watch.type = WATCH_TYPE_MOUNT_NOTIFY;
n.watch.subtype = subtype;
n.watch.info = info_flags | watch_sizeof(n);
+#ifdef CONFIG_FSINFO
n.triggered_on = trigger->mnt_unique_id;
+#endif
smp_wmb(); /* See fsinfo_generic_mount_info(). */
@@ -106,7 +108,9 @@ void notify_mount(struct mount *trigger,
case NOTIFY_MOUNT_UNMOUNT:
case NOTIFY_MOUNT_MOVE_FROM:
case NOTIFY_MOUNT_MOVE_TO:
+#ifdef CONFIG_FSINFO
n.auxiliary_mount = aux->mnt_unique_id;
+#endif
atomic_long_inc(&trigger->mnt_topology_changes);
atomic_long_inc(&aux->mnt_topology_changes);
break;