]> 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)
commit97caad020e5b2d4039fef074a21b80a1529029c2
treea9aad445a63b6e49d72c7c2bbcd7005eaf3e6ef9
parentcf1ae6bff46fa9a39660364cac0c9eb8038de94c
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