mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
Handle SMB2_READFLAG_REQUEST_COMPRESSED for non-RDMA reads. Flatten the response iov, emit chained or unchained LZ77 transforms when compression is beneficial, and retain the generated buffer until the work item is released. Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
17 lines
424 B
C
17 lines
424 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* SMB2 compression support for ksmbd.
|
|
*
|
|
* Copyright (C) 2026 Namjae Jeon <linkinjeon@kernel.org>
|
|
*/
|
|
#ifndef __KSMBD_COMPRESS_H__
|
|
#define __KSMBD_COMPRESS_H__
|
|
|
|
#include "connection.h"
|
|
#include "../common/compress/compress.h"
|
|
|
|
int ksmbd_decompress_request(struct ksmbd_conn *conn);
|
|
int ksmbd_compress_response(struct ksmbd_work *work);
|
|
|
|
#endif /* __KSMBD_COMPRESS_H__ */
|