summaryrefslogtreecommitdiff
path: root/include/linux/fs_parser.h
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2021-10-27 17:18:45 +0300
committerTheodore Ts'o <tytso@mit.edu>2021-12-09 22:09:36 +0300
commit6abfaaf124a81b7d2ab132cc2c9885baa14171e5 (patch)
treedd6b705b6dcabc3b13362a78d8428d6b0ab8ed31 /include/linux/fs_parser.h
parent0fcfb00b28c0b7884635dacf38e46d60bf3d4eb1 (diff)
downloadlinux-6abfaaf124a81b7d2ab132cc2c9885baa14171e5.tar.xz
fs_parse: allow parameter value to be empty
Allow parameter value to be empty by specifying fs_param_can_be_empty flag. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Link: https://lore.kernel.org/r/20211027141857.33657-2-lczerner@redhat.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include/linux/fs_parser.h')
-rw-r--r--include/linux/fs_parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs_parser.h b/include/linux/fs_parser.h
index aab0ffc6bac6..f103c91139d4 100644
--- a/include/linux/fs_parser.h
+++ b/include/linux/fs_parser.h
@@ -42,7 +42,7 @@ struct fs_parameter_spec {
u8 opt; /* Option number (returned by fs_parse()) */
unsigned short flags;
#define fs_param_neg_with_no 0x0002 /* "noxxx" is negative param */
-#define fs_param_neg_with_empty 0x0004 /* "xxx=" is negative param */
+#define fs_param_can_be_empty 0x0004 /* "xxx=" is allowed */
#define fs_param_deprecated 0x0008 /* The param is deprecated */
const void *data;
};