]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: constify the name argument to various directory functions
authorDarrick J. Wong <djwong@kernel.org>
Fri, 6 May 2022 19:22:35 +0000 (15:22 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 6 May 2022 19:22:35 +0000 (15:22 -0400)
commitc331b65484d5500ab39073c49aae193e5879a12d
tree549ada2692633060c7a95038334d73bd68b43255
parent7126f90b3c1a694a4269bb1902cbbcda0e1d9100
xfs: constify the name argument to various directory functions

Source kernel commit: 996b2329b20a89963fa577d495cf057dd7bf129c

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_dir2.c
libxfs/xfs_dir2.h
libxfs/xfs_dir2_priv.h