Skip to content
Snippets Groups Projects
Commit 1cdc415f authored by Christian Brauner's avatar Christian Brauner Committed by Al Viro
Browse files

uapi, fsopen: use square brackets around "fscontext" [ver #2]


Make the name of the anon inode fd "[fscontext]" instead of "fscontext".
This is minor but most core-kernel anon inode fds already carry square
brackets around their name:

[eventfd]
[eventpoll]
[fanotify]
[io_uring]
[pidfd]
[signalfd]
[timerfd]
[userfaultfd]

For the sake of consistency lets do the same for the fscontext anon inode
fd that comes with the new mount api.

Signed-off-by: default avatarChristian Brauner <christian@brauner.io>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 05883eee
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ static int fscontext_create_fd(struct fs_context *fc, unsigned int o_flags) ...@@ -92,7 +92,7 @@ static int fscontext_create_fd(struct fs_context *fc, unsigned int o_flags)
{ {
int fd; int fd;
fd = anon_inode_getfd("fscontext", &fscontext_fops, fc, fd = anon_inode_getfd("[fscontext]", &fscontext_fops, fc,
O_RDWR | o_flags); O_RDWR | o_flags);
if (fd < 0) if (fd < 0)
put_fs_context(fc); put_fs_context(fc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment