]> 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, 24 Sep 2022 12:56:47 +0000 (18:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:04:10 +0000 (11:04 +0200)
commit0336599b645e83bd34b845ce4a427584fec2af12
treec9bfa0a76282e11588b1f398364c5ff6c4d31f10
parent8856a6572fed4344b5e4fea2484f6e05390790d2
xfs: constify the buffer pointer arguments to error functions

commit d243b89a611e83dc97ce7102419360677a664076 upstream.

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>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_error.c
fs/xfs/xfs_error.h
fs/xfs/xfs_message.c
fs/xfs/xfs_message.h