]> git.baikalelectronics.ru Git - kernel.git/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)
commite726294c82a62f13e32052e7392e0c6a0c3136aa
treec9bfa0a76282e11588b1f398364c5ff6c4d31f10
parentcf1510ed79cb3f734484164e44ac82c84d27238c
xfs: constify the buffer pointer arguments to error functions

commit 97caad020e5b2d4039fef074a21b80a1529029c2 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