mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
add prefix to fs_context->log
... turning it into struct p_log embedded into fs_context. Initialize the prefix with fs_type->name, turning fs_parse() into a trivial inline wrapper for __fs_parse(). This makes fs_parameter_description->name completely unused. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
c80c98f0dc
commit
cc3c0b533a
6 changed files with 23 additions and 27 deletions
|
@ -243,16 +243,6 @@ unknown_parameter:
|
|||
}
|
||||
EXPORT_SYMBOL(__fs_parse);
|
||||
|
||||
int fs_parse(struct fs_context *fc,
|
||||
const struct fs_parameter_description *desc,
|
||||
struct fs_parameter *param,
|
||||
struct fs_parse_result *result)
|
||||
{
|
||||
struct p_log log = {.prefix = desc->name, .log = fc->log};
|
||||
return __fs_parse(&log, desc, param, result);
|
||||
}
|
||||
EXPORT_SYMBOL(fs_parse);
|
||||
|
||||
/**
|
||||
* fs_lookup_param - Look up a path referred to by a parameter
|
||||
* @fc: The filesystem context to log errors through.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue