mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 05:31:37 -04:00
fs: remove fsparam_blob / fs_param_is_blob
These are not used anywhere even after the fs_context conversion is finished, so remove them. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20260219065014.3550402-3-hch@lst.de Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
committed by
Christian Brauner
parent
0d799df5b1
commit
8823db2974
@@ -647,7 +647,6 @@ The members are as follows:
|
||||
fs_param_is_u64 64-bit unsigned int result->uint_64
|
||||
fs_param_is_enum Enum value name result->uint_32
|
||||
fs_param_is_string Arbitrary string param->string
|
||||
fs_param_is_blob Binary blob param->blob
|
||||
fs_param_is_blockdev Blockdev path * Needs lookup
|
||||
fs_param_is_path Path * Needs lookup
|
||||
fs_param_is_fd File descriptor result->int_32
|
||||
@@ -681,7 +680,6 @@ The members are as follows:
|
||||
fsparam_u64() fs_param_is_u64
|
||||
fsparam_enum() fs_param_is_enum
|
||||
fsparam_string() fs_param_is_string
|
||||
fsparam_blob() fs_param_is_blob
|
||||
fsparam_bdev() fs_param_is_blockdev
|
||||
fsparam_path() fs_param_is_path
|
||||
fsparam_fd() fs_param_is_fd
|
||||
|
||||
@@ -277,15 +277,6 @@ int fs_param_is_string(struct p_log *log, const struct fs_parameter_spec *p,
|
||||
}
|
||||
EXPORT_SYMBOL(fs_param_is_string);
|
||||
|
||||
int fs_param_is_blob(struct p_log *log, const struct fs_parameter_spec *p,
|
||||
struct fs_parameter *param, struct fs_parse_result *result)
|
||||
{
|
||||
if (param->type != fs_value_is_blob)
|
||||
return fs_param_bad_value(log, param);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(fs_param_is_blob);
|
||||
|
||||
int fs_param_is_fd(struct p_log *log, const struct fs_parameter_spec *p,
|
||||
struct fs_parameter *param, struct fs_parse_result *result)
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@ typedef int fs_param_type(struct p_log *,
|
||||
* The type of parameter expected.
|
||||
*/
|
||||
fs_param_type fs_param_is_bool, fs_param_is_u32, fs_param_is_s32, fs_param_is_u64,
|
||||
fs_param_is_enum, fs_param_is_string, fs_param_is_blob, fs_param_is_blockdev,
|
||||
fs_param_is_enum, fs_param_is_string, fs_param_is_blockdev,
|
||||
fs_param_is_path, fs_param_is_fd, fs_param_is_uid, fs_param_is_gid,
|
||||
fs_param_is_file_or_string;
|
||||
|
||||
@@ -125,7 +125,6 @@ static inline bool fs_validate_description(const char *name,
|
||||
#define fsparam_enum(NAME, OPT, array) __fsparam(fs_param_is_enum, NAME, OPT, 0, array)
|
||||
#define fsparam_string(NAME, OPT) \
|
||||
__fsparam(fs_param_is_string, NAME, OPT, 0, NULL)
|
||||
#define fsparam_blob(NAME, OPT) __fsparam(fs_param_is_blob, NAME, OPT, 0, NULL)
|
||||
#define fsparam_bdev(NAME, OPT) __fsparam(fs_param_is_blockdev, NAME, OPT, 0, NULL)
|
||||
#define fsparam_path(NAME, OPT) __fsparam(fs_param_is_path, NAME, OPT, 0, NULL)
|
||||
#define fsparam_fd(NAME, OPT) __fsparam(fs_param_is_fd, NAME, OPT, 0, NULL)
|
||||
|
||||
Reference in New Issue
Block a user