xfs: constify the name argument to various directory functions
authorDarrick J. Wong <djwong@kernel.org>
Wed, 9 Mar 2022 18:16:09 +0000 (10:16 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 14 Mar 2022 17:23:17 +0000 (10:23 -0700)
commit996b2329b20a89963fa577d495cf057dd7bf129c
tree20f901d4334aa36a0777a57896bd71551b5be200
parent41667260bc84db4dfe566e3f6ab6da5293d60d8d
xfs: constify the name argument to various directory functions

Various directory functions do not modify their @name parameter,
so mark it const to make that clear.  This will enable us to mark
the global xfs_name_dotdot variable as const to prevent mischief.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_dir2.c
fs/xfs/libxfs/xfs_dir2.h
fs/xfs/libxfs/xfs_dir2_priv.h
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_trace.h