summaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorLuis Henriques (SUSE) <luis.henriques@linux.dev>2024-03-12 10:47:57 +0000
committerChristian Brauner <brauner@kernel.org>2024-03-26 09:01:18 +0100
commit7b30851a70645400ba37a184b9a2f10e1d6987a6 (patch)
tree94c92db469ca8bce1ce07767e3275cf9b4db3465 /fs/ext4/super.c
parent2a82bb02941fb53d1f8df2a360e7798ae3d9d962 (diff)
downloadlinux-7b30851a70645400ba37a184b9a2f10e1d6987a6.tar.gz
linux-7b30851a70645400ba37a184b9a2f10e1d6987a6.tar.bz2
linux-7b30851a70645400ba37a184b9a2f10e1d6987a6.zip
fs_parser: move fsparam_string_empty() helper into header
Since both ext4 and overlayfs define the same macro to specify string parameters that may allow empty values, define it in an header file so that this helper can be shared. Signed-off-by: Luis Henriques (SUSE) <luis.henriques@linux.dev> Link: https://lore.kernel.org/r/20240312104757.27333-1-luis.henriques@linux.dev Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index cfb8449c731f..2e906dbbe015 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1723,10 +1723,6 @@ static const struct constant_table ext4_param_dax[] = {
{}
};
-/* String parameter that allows empty argument */
-#define fsparam_string_empty(NAME, OPT) \
- __fsparam(fs_param_is_string, NAME, OPT, fs_param_can_be_empty, NULL)
-
/*
* Mount option specification
* We don't use fsparam_flag_no because of the way we set the