summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-14 17:58:04 +0100
committerDavid Sterba <dsterba@suse.com>2017-02-28 14:26:07 +0100
commit14a3357b4097d94ac6401c597abc2d02965e0fdd (patch)
tree93f5982319bbfe08810185052ce6b1e3b1aa13a2 /fs/btrfs/compression.c
parentbtrfs: constify input buffer of btrfs_csum_data (diff)
downloadlinux-14a3357b4097d94ac6401c597abc2d02965e0fdd.tar.xz
linux-14a3357b4097d94ac6401c597abc2d02965e0fdd.zip
btrfs: constify buffers used by compression helpers
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r--fs/btrfs/compression.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index f32e86b61240..d426e4a10b2b 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -1015,7 +1015,7 @@ void btrfs_exit_compress(void)
*
* total_out is the last byte of the buffer
*/
-int btrfs_decompress_buf2page(char *buf, unsigned long buf_start,
+int btrfs_decompress_buf2page(const char *buf, unsigned long buf_start,
unsigned long total_out, u64 disk_start,
struct bio *bio)
{