summaryrefslogtreecommitdiff
path: root/libnetfs/priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs/priv.h')
-rw-r--r--libnetfs/priv.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libnetfs/priv.h b/libnetfs/priv.h
index 00db9faa..ba310802 100644
--- a/libnetfs/priv.h
+++ b/libnetfs/priv.h
@@ -37,4 +37,18 @@ end_using_protid_port (struct protid *cred)
if (cred)
ports_port_deref (cred);
}
+
+static inline struct netfs_control * __attribute__ ((unused))
+begin_using_control_port (fsys_t port)
+{
+ return ports_lookup_port (netfs_port_bucket, port, netfs_control_class);
+}
+
+static inline void __attribute__ ((unused))
+end_using_control_port (struct netfs_control *cred)
+{
+ if (cred)
+ ports_port_deref (cred);
+}
+
#endif