]> git.baikalelectronics.ru Git - kernel.git/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)
commit2949657f3c8add38afa8bc8c4bf5e3b211eeeb28
treea9aad445a63b6e49d72c7c2bbcd7005eaf3e6ef9
parenta3105b43b38f4eb63fa0f2a749c78827a78cd588
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