diff options
author | David Sterba <dsterba@suse.com> | 2022-11-07 17:30:21 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-12-05 18:00:55 +0100 |
commit | 3e09b5b2293f21e6e28929b6bbb73833678bfdd1 (patch) | |
tree | 42a3de25723bc151c4903d046e1f25147acd017f /fs/btrfs/lzo.c | |
parent | ad3daf1c3f5bcbba49a302d8d0e46467556bf6f3 (diff) | |
download | lwn-3e09b5b2293f21e6e28929b6bbb73833678bfdd1.tar.gz lwn-3e09b5b2293f21e6e28929b6bbb73833678bfdd1.zip |
btrfs: constify input buffer parameter in compression code
The input buffers passed down to compression must never be changed,
switch type to u8 as it's a raw byte buffer and use const.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/lzo.c')
-rw-r--r-- | fs/btrfs/lzo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c index e7b1ceffcd33..d5e78cbc8fbc 100644 --- a/fs/btrfs/lzo.c +++ b/fs/btrfs/lzo.c @@ -427,7 +427,7 @@ out: return ret; } -int lzo_decompress(struct list_head *ws, unsigned char *data_in, +int lzo_decompress(struct list_head *ws, const u8 *data_in, struct page *dest_page, unsigned long start_byte, size_t srclen, size_t destlen) { |