summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2021-08-05 18:16:42 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-10 22:12:56 +0200
commit612674f4b77472c381c8150138fce8a34a4c9119 (patch)
treef6ba751b587fb42e395025027d61615355e2f9da /libnetfs
parent4b739a627e08fe0bc50342e65ba61abd0152fe17 (diff)
netfs: Use the libports notify port
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/dir-lookup.c5
-rw-r--r--libnetfs/file-set-translator.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c
index 87874dc5..e9ea61e7 100644
--- a/libnetfs/dir-lookup.c
+++ b/libnetfs/dir-lookup.c
@@ -277,6 +277,8 @@ netfs_S_dir_lookup (struct protid *dircred,
char *translator_path = strdupa (relpath);
char *end;
char *complete_path;
+ struct port_info *notify_port;
+
if (nextname != NULL)
{
/* This was not the last path component.
@@ -302,7 +304,8 @@ netfs_S_dir_lookup (struct protid *dircred,
asprintf (&complete_path, "%s/%s", dircred->po->path,
translator_path);
- err = fshelp_set_active_translator (&newpi->pi,
+ notify_port = newpi->pi.bucket->notify_port;
+ err = fshelp_set_active_translator (notify_port,
complete_path,
&np->transbox);
if (complete_path != translator_path)
diff --git a/libnetfs/file-set-translator.c b/libnetfs/file-set-translator.c
index ae18686c..26d9a6e6 100644
--- a/libnetfs/file-set-translator.c
+++ b/libnetfs/file-set-translator.c
@@ -179,7 +179,8 @@ netfs_S_file_set_translator (struct protid *user,
}
if (! err && user->po->path && active_flags & FS_TRANS_SET)
- err = fshelp_set_active_translator (&user->pi, user->po->path, &np->transbox);
+ err = fshelp_set_active_translator (user->pi.bucket->notify_port,
+ user->po->path, &np->transbox);
out:
pthread_mutex_unlock (&np->lock);