]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite657c9989f54d8b604c741c1640148bd33e64059
tree20f901d4334aa36a0777a57896bd71551b5be200
parent970a23ef804bb748a4fcafc6f45857b786649e63
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