linux/fs/smb/server/compress.h
Namjae Jeon 08f641e2e2 ksmbd: compress SMB2 READ responses
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>
2026-06-16 18:57:22 -05:00

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__ */