lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <67c9e6bce3d13c70954fec17def66fad0d7a822c.1521626569.git.geliangtang@gmail.com>
Date:   Wed, 21 Mar 2018 20:29:32 +0800
From:   Geliang Tang <geliangtang@...il.com>
To:     Kees Cook <keescook@...omium.org>,
        Anton Vorontsov <anton@...msg.org>,
        Colin Cross <ccross@...roid.com>,
        Tony Luck <tony.luck@...el.com>
Cc:     Geliang Tang <geliangtang@...il.com>, linux-kernel@...r.kernel.org
Subject: [PATCH] pstore: rename two compression functions

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 <geliangtang@...il.com>
---
 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ