]> git.itanic.dy.fi Git - linux-stable/commit
xfs: constify the buffer pointer arguments to error functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 2 Nov 2019 16:40:36 +0000 (09:40 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 Nov 2019 21:55:34 +0000 (13:55 -0800)
commitd243b89a611e83dc97ce7102419360677a664076
treea9aad445a63b6e49d72c7c2bbcd7005eaf3e6ef9
parente91ec882af21c0e845bf962b35f3c13482f74b2f
xfs: constify the buffer pointer arguments to error functions

Some of the xfs error message functions take a pointer to a buffer that
will be dumped to the system log.  The logging functions don't change
the contents, so constify all the parameters.  This enables the next
patch to ensure that we log bad metadata when we encounter it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_error.c
fs/xfs/xfs_error.h
fs/xfs/xfs_message.c
fs/xfs/xfs_message.h