From: Randy Dunlap <rdunlap@infradead.org>
To: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>,
"viro@zeniv.linux.org.uk" <viro@zeniv.linux.org.uk>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>
Cc: "Pali Rohár" <pali@kernel.org>
Subject: Re: [PATCH v2 06/10] fs/ntfs3: Add compression
Date: Fri, 21 Aug 2020 09:46:18 -0700 [thread overview]
Message-ID: <e12ee6c4-5064-709a-0d4b-751b23bc5ccb@infradead.org> (raw)
In-Reply-To: <ecaa5cd692294178a38a9a2310d9856f@paragon-software.com>
On 8/21/20 9:25 AM, Konstantin Komarov wrote:
> This adds compression
>
> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
> ---
> fs/ntfs3/lznt.c | 449 ++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 449 insertions(+)
> create mode 100644 fs/ntfs3/lznt.c
>
> diff --git a/fs/ntfs3/lznt.c b/fs/ntfs3/lznt.c
> new file mode 100644
> index 000000000000..db3256c08387
> --- /dev/null
> +++ b/fs/ntfs3/lznt.c
> @@ -0,0 +1,449 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * linux/fs/ntfs3/lznt.c
> + *
> + * Copyright (C) 2019-2020 Paragon Software GmbH, All rights reserved.
> + *
> + */
Hi,
> +// 0x3FFF
> +#define HeaderOfNonCompressedChunk ((LZNT_CHUNK_SIZE + 2 - 3) | 0x3000)
Do we need something in coding-style.rst that says:
Avoid CamelCase in Linux kernel source code.
?
> +
> +/*
> + * compess_chunk
Just curious: what is this compess name?
> + *
> + * returns one of the tree values:
s/tree/three/
> + * 0 - ok, 'cmpr' contains 'cmpr_chunk_size' bytes of compressed data
> + * 1 == LZNT_ERROR_ALL_ZEROS - input buffer is full zero
> + * -2 == LZNT_ERROR_TOOSMALL
> + */
> +static inline int compess_chunk(size_t (*match)(const u8 *, struct lznt *),
> + const u8 *unc, const u8 *unc_end, u8 *cmpr,
> + u8 *cmpr_end, size_t *cmpr_chunk_size,
> + struct lznt *ctx)
> +{
...
--
~Randy
next prev parent reply other threads:[~2020-08-21 16:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-21 16:25 Konstantin Komarov
2020-08-21 16:46 ` Randy Dunlap [this message]
2020-08-27 15:54 ` Konstantin Komarov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e12ee6c4-5064-709a-0d4b-751b23bc5ccb@infradead.org \
--to=rdunlap@infradead.org \
--cc=almaz.alexandrovich@paragon-software.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pali@kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®