Lines Matching refs:string
267 static bool btrfs_match_compress_type(const char *string, const char *type, bool may_have_level) in btrfs_match_compress_type() argument
271 return (strncmp(string, type, len) == 0) && in btrfs_match_compress_type()
272 ((may_have_level && string[len] == ':') || string[len] == '\0'); in btrfs_match_compress_type()
278 const char *string = param->string; in btrfs_parse_compress() local
295 } else if (btrfs_match_compress_type(string, "zlib", true)) { in btrfs_parse_compress()
298 string + 4); in btrfs_parse_compress()
302 } else if (btrfs_match_compress_type(string, "lzo", false)) { in btrfs_parse_compress()
308 } else if (btrfs_match_compress_type(string, "zstd", true)) { in btrfs_parse_compress()
311 string + 4); in btrfs_parse_compress()
315 } else if (btrfs_match_compress_type(string, "no", false) || in btrfs_parse_compress()
316 btrfs_match_compress_type(string, "none", false)) { in btrfs_parse_compress()
322 btrfs_err(NULL, "unrecognized compression value %s", string); in btrfs_parse_compress()
351 ctx->subvol_name = kstrdup(param->string, GFP_KERNEL); in btrfs_parse_param()
366 device = btrfs_scan_one_device(param->string, false); in btrfs_parse_param()
432 ctx->max_inline = memparse(param->string, NULL); in btrfs_parse_param()