lznt.c (522e010b58379fbe19b38fdef5016bca0c3cf405) lznt.c (195c52bdd5d5ecfdabf5a7c6159efe299e534f84)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 *
4 * Copyright (C) 2019-2021 Paragon Software GmbH, All rights reserved.
5 *
6 */
7#include <linux/blkdev.h>
8#include <linux/buffer_head.h>

--- 280 unchanged lines hidden (view full) ---

289}
290
291/*
292 * 0 - standard compression
293 * !0 - best compression, requires a lot of cpu
294 */
295struct lznt *get_lznt_ctx(int level)
296{
1// SPDX-License-Identifier: GPL-2.0
2/*
3 *
4 * Copyright (C) 2019-2021 Paragon Software GmbH, All rights reserved.
5 *
6 */
7#include <linux/blkdev.h>
8#include <linux/buffer_head.h>

--- 280 unchanged lines hidden (view full) ---

289}
290
291/*
292 * 0 - standard compression
293 * !0 - best compression, requires a lot of cpu
294 */
295struct lznt *get_lznt_ctx(int level)
296{
297 struct lznt *r = ntfs_zalloc(level ? offsetof(struct lznt, hash)
298 : sizeof(struct lznt));
297 struct lznt *r = kzalloc(level ? offsetof(struct lznt, hash) :
298 sizeof(struct lznt), GFP_NOFS);
299
300 if (r)
301 r->std = !level;
302 return r;
303}
304
305/*
306 * compress_lznt

--- 146 unchanged lines hidden ---
299
300 if (r)
301 r->std = !level;
302 return r;
303}
304
305/*
306 * compress_lznt

--- 146 unchanged lines hidden ---