diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2025-01-29 17:58:01 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-02-05 17:21:11 +0100 |
commit | bf630c40164162ba1d3933c2f5e3397d083e0948 (patch) | |
tree | 13e0a2996eb365af23f498ae963bbd77bc0a6a60 /fs/pnode.c | |
parent | 0f46d81f2bce970b1c562aa3c944a271bbec2729 (diff) |
vfs: add notifications for mount attach and detach
Add notifications for attaching and detaching mounts to fs/namespace.c
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Link: https://lore.kernel.org/r/20250129165803.72138-4-mszeredi@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/pnode.c')
-rw-r--r-- | fs/pnode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/pnode.c b/fs/pnode.c index ef048f008bdd..82d809c785ec 100644 --- a/fs/pnode.c +++ b/fs/pnode.c @@ -549,8 +549,10 @@ static void restore_mounts(struct list_head *to_restore) mp = parent->mnt_mp; parent = parent->mnt_parent; } - if (parent != mnt->mnt_parent) + if (parent != mnt->mnt_parent) { mnt_change_mountpoint(parent, mp, mnt); + mnt_notify_add(mnt); + } } } |