Received: by 10.213.65.68 with SMTP id h4csp1209647imn; Wed, 21 Mar 2018 05:31:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELtCTXN6HrdeDcWMk6ZQ7elt0ZJLswKz7QCrPxiE1thhTYX1fcDWBSXLfMJlKI3qaFMnVuaM X-Received: by 2002:a17:902:7081:: with SMTP id z1-v6mr15188279plk.333.1521635487458; Wed, 21 Mar 2018 05:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521635487; cv=none; d=google.com; s=arc-20160816; b=jAGP51hgeVQBw1SuwD0G8pLeLy+bw2WWzLQiyebzfVfYuwO/JRS77Bw0M17elYwXl3 6pxY1gUXCw/PK8sd0Ti4BoTUBlRMEFmnV1PmuWhj2WD5Xd2NOqBcgIpOI3if9EH8r9Jn NL0RcGdH2MPCS3y1m+S49q7LDK30tNaUaG+swIj76iUf3K5Eh5WDn22vEvZwbhFI1C2R lNN9JC62P77uBxVRMI4IeNiAi/vbSt4A+XTqEBdfllkmX4EpVmsDKBqRfQx3arwcc2rV mV1U0uRrbLW+Kz1DsqkDuTfX+rYJ8O4aPsVckWfYRFKE2WprISnRPEpPyBfgWTThww+L 9Vog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=i7vXyAxtNDGgF5NEqVHiCgRxZgtb4sktPYqfVDBiPic=; b=F8pF4TV2YW0oFNlFGgf1ZJtIEQSKadBt/n0OqMouXZwGbVYCfoUuosn2WT6fzfdDcF rBTT7R2G7fS9JGhJYiguBy0tDiK+3/bQL/nCkKeud2+yyJZTPCELGsi+SiWlmmEpHa6u GiC9rvQ/xkOv7lXNjhIwPWatY5MVMmZQxlalLe0h8LqfKICzc0rc2pJLEjL9PRfY318o rhvj34K3FiCCqkUIEXMKJWZQvDX2CfriQIrgWHO44ePAGgNVUMq0T30EnPbBV7cFEsm+ yYC7eoS+yNgh7A4/Y6MgmdLMR3XaP7jd7Wu4AOkrymnhB3d2hZ7plb4OEoUppGVD4i4A lX5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IXuaVxsP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a71si2730426pfc.178.2018.03.21.05.31.13; Wed, 21 Mar 2018 05:31:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IXuaVxsP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752105AbeCUM3p (ORCPT + 99 others); Wed, 21 Mar 2018 08:29:45 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37364 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751778AbeCUM3j (ORCPT ); Wed, 21 Mar 2018 08:29:39 -0400 Received: by mail-pg0-f65.google.com with SMTP id n11so1865671pgp.4 for ; Wed, 21 Mar 2018 05:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=i7vXyAxtNDGgF5NEqVHiCgRxZgtb4sktPYqfVDBiPic=; b=IXuaVxsPR0iTrFVf8f3P6j20OaX7a2f5d83gd735zY5bm0FLDjhU1KYD/cd5B/fRfa T8EFlpm+FQAWY0SrxVN35OqB+lxPXXJhiTptOIrrfZiXI0fMAHBFyMzTO3oBgTeQMO9k 1goZ7o2aqN62d5Wr8uQ93VR32KSRgwotL9/oKf5NcH/oXw0WG3ixe9TQlctOtD7+6ncU RXrN0Q3KMbPBMlrfh2+nDjMKKbVjbWBZlh2Uw3J4IaFRwQobCzbRnUW9C52huZ0bQMZd NemsQPlRT5p8DTzSRmOk1kHcnz3WPUxZbkXRu78XuuNoxiFd5g5Nmb3kMkkU3X36SJPL PKzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=i7vXyAxtNDGgF5NEqVHiCgRxZgtb4sktPYqfVDBiPic=; b=m0pcNy80iew6HFPxnMPoRvGvBNhZFT8MrWpWP2x20esE9+6x6ju6zfE2YHGl/nJcMl Kr5NLeJX89yghCudQQd9HFbMpBSIYzrI0kcaG9NMNKD2QU4r/v+6jRVOu0a+mDHm8Uje L3qkYj/Cw3bOlVhaB5VK86bCSeEG2XdxN1IGbBovUb6Px6J2tM0d3QCtFly28gJVH7tf AdFPORBrp1NRsI6QDPZkM9T12d/usL5DEsyWElCuV4+5lMRAfa9CnHjSXi1jjbiiUNv6 HaYVYThJymWObQ5qJ2yk1/dq26oZ4a0fgXZsV6EafWUbdWxqmYcuxGlaMjurYtO9Hx5B V+XQ== X-Gm-Message-State: AElRT7Gk7Dc3ykZ++WuROIAO1MZD7y7/hfYmNfpIi/ghHw68Haup4/Mw rzfLQv6TGOOQQ8dN+CdQa0919w== X-Received: by 10.99.109.136 with SMTP id i130mr14980240pgc.380.1521635379308; Wed, 21 Mar 2018 05:29:39 -0700 (PDT) Received: from localhost ([114.255.3.133]) by smtp.gmail.com with ESMTPSA id q15sm8896113pfi.140.2018.03.21.05.29.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Mar 2018 05:29:38 -0700 (PDT) From: Geliang Tang To: Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck Cc: Geliang Tang , linux-kernel@vger.kernel.org Subject: [PATCH] pstore: rename two compression functions Date: Wed, 21 Mar 2018 20:29:32 +0800 Message-Id: <67c9e6bce3d13c70954fec17def66fad0d7a822c.1521626569.git.geliangtang@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <9c9416b2dff19f05fb4c35879aaa83d11ff72c92.1521626182.git.geliangtang@gmail.com> References: <9c9416b2dff19f05fb4c35879aaa83d11ff72c92.1521626182.git.geliangtang@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have following five functions which deal with pstore compression. This patch renamed two functions to make the names of those functions consistent: allocate_buf_for_compression -> pstore_init_compression free_buf_for_compression -> pstore_free_compression pstore_choose_compression pstore_choose_compression pstore_compress pstore_compress pstore_decompress pstore_decompress Signed-off-by: Geliang Tang --- fs/pstore/platform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 1143ef351c58..03d16b6ed5ec 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -256,7 +256,7 @@ static int pstore_decompress(void *in, void *out, return outlen; } -static void allocate_buf_for_compression(void) +static void pstore_init_compression(void) { if (!zbackend) return; @@ -285,7 +285,7 @@ static void allocate_buf_for_compression(void) } } -static void free_buf_for_compression(void) +static void pstore_free_compression(void) { if (!IS_ERR_OR_NULL(tfm)) crypto_free_comp(tfm); @@ -560,7 +560,7 @@ int pstore_register(struct pstore_info *psi) return -EINVAL; } - allocate_buf_for_compression(); + pstore_init_compression(); if (pstore_is_mounted()) pstore_get_records(0); @@ -611,7 +611,7 @@ void pstore_unregister(struct pstore_info *psi) if (psi->flags & PSTORE_FLAGS_DMESG) pstore_unregister_kmsg(); - free_buf_for_compression(); + pstore_free_compression(); psinfo = NULL; backend = NULL; -- 2.14.1