diff options
author | David Howells <dhowells@redhat.com> | 2018-11-02 02:07:25 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-02-28 11:29:29 +0300 |
commit | 935c6912b198f60a812b7dada21027b5aac7c461 (patch) | |
tree | b948022b6e597e4e108d773fd9ceeea2985965d6 /fs/proc/array.c | |
parent | 66f592e2ece0389c018d74d1bbb2d0b9738cfe48 (diff) | |
download | linux-935c6912b198f60a812b7dada21027b5aac7c461.tar.xz |
ipc: Convert mqueue fs to fs_context
Convert the mqueue filesystem to use the filesystem context stuff.
Notes:
(1) The relevant ipc namespace is selected in when the context is
initialised (and it defaults to the current task's ipc namespace).
The caller can override this before calling vfs_get_tree().
(2) Rather than simply calling kern_mount_data(), mq_init_ns() and
mq_internal_mount() create a context, adjust it and then do the rest
of the mount procedure.
(3) The lazy mqueue mounting on creation of a new namespace is retained
from a previous patch, but the avoidance of sget() if no superblock
yet exists is reverted and the superblock is again keyed on the
namespace pointer.
Yes, there was a performance gain in not searching the superblock
hash, but it's only paid once per ipc namespace - and only if someone
uses mqueue within that namespace, so I'm not sure it's worth it,
especially as calling sget() allows avoidance of recursion.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions