summaryrefslogtreecommitdiffstats
path: root/fs/fsopen.c
diff options
context:
space:
mode:
authorChristian Brauner2019-05-16 13:52:20 +0200
committerAl Viro2019-05-16 18:23:45 +0200
commit1cdc415f10831c18912943017d06b2be948c67b4 (patch)
tree42ff02a824bb5fc54c63fe469845a1eb25880745 /fs/fsopen.c
parentdo_move_mount(): fix an unsafe use of is_anon_ns() (diff)
downloadkernel-qcow2-linux-1cdc415f10831c18912943017d06b2be948c67b4.tar.gz
kernel-qcow2-linux-1cdc415f10831c18912943017d06b2be948c67b4.tar.xz
kernel-qcow2-linux-1cdc415f10831c18912943017d06b2be948c67b4.zip
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: Christian Brauner <christian@brauner.io> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fsopen.c')
-rw-r--r--fs/fsopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fsopen.c b/fs/fsopen.c
index 3bb9c0c8cbcc..c2891e933ef1 100644
--- a/fs/fsopen.c
+++ b/fs/fsopen.c
@@ -92,7 +92,7 @@ static int fscontext_create_fd(struct fs_context *fc, unsigned int o_flags)
{
int fd;
- fd = anon_inode_getfd("fscontext", &fscontext_fops, fc,
+ fd = anon_inode_getfd("[fscontext]", &fscontext_fops, fc,
O_RDWR | o_flags);
if (fd < 0)
put_fs_context(fc);