diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-03-09 21:16:09 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-03-14 20:23:17 +0300 |
commit | 996b2329b20a89963fa577d495cf057dd7bf129c (patch) | |
tree | 20f901d4334aa36a0777a57896bd71551b5be200 /fs/xfs/xfs_inode.c | |
parent | 41667260bc84db4dfe566e3f6ab6da5293d60d8d (diff) | |
download | linux-996b2329b20a89963fa577d495cf057dd7bf129c.tar.xz |
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>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 35a2489942e5..67ece991d3f5 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -658,9 +658,9 @@ xfs_ip2xflags( */ int xfs_lookup( - xfs_inode_t *dp, - struct xfs_name *name, - xfs_inode_t **ipp, + struct xfs_inode *dp, + const struct xfs_name *name, + struct xfs_inode **ipp, struct xfs_name *ci_name) { xfs_ino_t inum; |