xfs: constify xfs_name_dotdot
authorDarrick J. Wong <djwong@kernel.org>
Wed, 9 Mar 2022 18:16:12 +0000 (10:16 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 14 Mar 2022 17:23:17 +0000 (10:23 -0700)
commit744e6c8ada5d612353a42ce8cd8323dd2364a70d
treec51b8089574958c088cac1b18626474d093cf9e3
parent996b2329b20a89963fa577d495cf057dd7bf129c
xfs: constify xfs_name_dotdot

The symbol xfs_name_dotdot is a global variable that the xfs codebase
uses here and there to look up directory dotdot entries.  Currently it's
a non-const variable, which means that it's a mutable global variable.
So far nobody's abused this to cause problems, but let's use the
compiler to enforce that.

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