summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-14 18:03:49 +0100
committerDavid Sterba <dsterba@suse.com>2017-02-28 14:26:07 +0100
commit9ed573674ae607bc616c804657bfaf5b6ea5889d (patch)
treeba1978abe3ea592908192ef6570d655165cb002e /fs/btrfs/disk-io.h
parentda353f6b30bc02da29b54f5f024039698fbd23f4 (diff)
downloadop-kernel-dev-9ed573674ae607bc616c804657bfaf5b6ea5889d.zip
op-kernel-dev-9ed573674ae607bc616c804657bfaf5b6ea5889d.tar.gz
btrfs: constify input buffer of btrfs_csum_data
The function does not modify the input buffer, also update a typecast in one caller. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.h')
-rw-r--r--fs/btrfs/disk-io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h
index 0be2d4f..2e0ec29 100644
--- a/fs/btrfs/disk-io.h
+++ b/fs/btrfs/disk-io.h
@@ -116,7 +116,7 @@ void btrfs_mark_buffer_dirty(struct extent_buffer *buf);
int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid,
int atomic);
int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid);
-u32 btrfs_csum_data(char *data, u32 seed, size_t len);
+u32 btrfs_csum_data(const char *data, u32 seed, size_t len);
void btrfs_csum_final(u32 crc, u8 *result);
int btrfs_bio_wq_end_io(struct btrfs_fs_info *info, struct bio *bio,
enum btrfs_wq_endio_type metadata);
OpenPOWER on IntegriCloud