On Thu, Mar 10, 2022 at 01:53:53PM -0800, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > 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@xxxxxxxxxx> > --- > fs/xfs/libxfs/xfs_dir2.c | 6 +++++- > fs/xfs/libxfs/xfs_dir2.h | 2 +- > 2 files changed, 6 insertions(+), 2 deletions(-) Much simpler :) Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -- Dave Chinner david@xxxxxxxxxxxxx