statmount: clean up unescaped option handling
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 20 Nov 2024 14:27:23 +0000 (15:27 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 21 Nov 2024 08:35:26 +0000 (09:35 +0100)
commitd18516a0218da360dd27ae204acbd8d1440f6d6b
tree5877b689c07bdda744304396bafa88c0abafb6b5
parentb3e2963916ec70e4c6927e68d1b5d0916afb139a
statmount: clean up unescaped option handling

Move common code from opt_array/opt_sec_array to helper.  This helper
does more than just unescape options, so rename to
statmount_opt_process().

Handle corner case of just a single character in options.

Rename some local variables to better describe their function.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Link: https://lore.kernel.org/r/20241120142732.55210-1-mszeredi@redhat.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c