Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1639861
| From | David Howells <dhowells@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 03/14] VFS: Make get_mnt_ns() return the namespace [ver #2] |
| Date | 2017-05-11 18:30 +0200 |
| Message-ID | <tFZ8t-dN-1@gated-at.bofh.it> (permalink) |
| References | <tFWWZ-7l8-3@gated-at.bofh.it> |
| Organization | Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 |
Make get_mnt_ns() return the namespace it got a ref on for consistency with
other namespace ref getting functions.
Signed-off-by: David Howells <dhowells@redhat.com>
---
fs/mount.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/mount.h b/fs/mount.h
index 2826543a131d..b1e99b38f2ee 100644
--- a/fs/mount.h
+++ b/fs/mount.h
@@ -108,9 +108,10 @@ static inline void detach_mounts(struct dentry *dentry)
__detach_mounts(dentry);
}
-static inline void get_mnt_ns(struct mnt_namespace *ns)
+static inline struct mnt_namespace *get_mnt_ns(struct mnt_namespace *ns)
{
atomic_inc(&ns->count);
+ return ns;
}
extern seqlock_t mount_lock;
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC][PATCH 00/14] VFS: Introduce superblock configuration context [ver #2] David Howells <dhowells@redhat.com> - 2017-05-11 16:10 +0200 [PATCH 03/14] VFS: Make get_mnt_ns() return the namespace [ver #2] David Howells <dhowells@redhat.com> - 2017-05-11 18:30 +0200 [PATCH 02/14] Clean up whitespace in fs/namespace.c [ver #2] David Howells <dhowells@redhat.com> - 2017-05-11 18:30 +0200 [PATCH 07/14] Implement fsopen() to prepare for a mount [ver #2] David Howells <dhowells@redhat.com> - 2017-05-11 18:30 +0200 [PATCH 10/14] procfs: Move proc_fill_super() to fs/proc/root.c [ver #2] David Howells <dhowells@redhat.com> - 2017-05-11 18:30 +0200 [PATCH 05/14] VFS: Provide empty name qstr [ver #2] David Howells <dhowells@redhat.com> - 2017-05-11 18:30 +0200 [PATCH 04/14] VFS: Make get_filesystem() return the affected filesystem [ver #2] David Howells <dhowells@redhat.com> - 2017-05-11 18:30 +0200 [PATCH 01/14] Provide a function to create a NUL-terminated string from unterminated data [ver #2] David Howells <dhowells@redhat.com> - 2017-05-11 18:30 +0200 [PATCH 08/14] Implement fsmount() to effect a pre-configured mount [ver #2] David Howells <dhowells@redhat.com> - 2017-05-11 18:40 +0200 [PATCH 09/14] Sample program for driving fsopen/fsmount [ver #2] David Howells <dhowells@redhat.com> - 2017-05-11 18:40 +0200 Re: [RFC][PATCH 00/14] VFS: Introduce superblock configuration context [ver #2] David Howells <dhowells@redhat.com> - 2017-05-11 21:30 +0200
csiph-web