From: Al Viro Date: Sun, 6 Jul 2025 21:02:01 +0000 (-0400) Subject: nfs: constify path argument of __vfs_getattr() X-Git-Tag: v6.18-rc1~108^2~1^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df9a4d79f1decb1b85efa58a66bcf122d6b6c624;p=thirdparty%2Fkernel%2Flinux.git nfs: constify path argument of __vfs_getattr() Reviewed-by: Jan Kara Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/nfs/localio.c b/fs/nfs/localio.c index bd5fca2858998..1f5d8c5f67ec9 100644 --- a/fs/nfs/localio.c +++ b/fs/nfs/localio.c @@ -529,7 +529,7 @@ nfs_set_local_verifier(struct inode *inode, } /* Factored out from fs/nfsd/vfs.h:fh_getattr() */ -static int __vfs_getattr(struct path *p, struct kstat *stat, int version) +static int __vfs_getattr(const struct path *p, struct kstat *stat, int version) { u32 request_mask = STATX_BASIC_STATS;