diff mbox series

[2/2] nfsd: Fix typo in comment

Message ID 20200812141252.21059-2-alex.dewar90@gmail.com (mailing list archive)
State New, archived
Headers show
Series [1/2] nfsd: Remove unnecessary assignment in nfs4xdr.c | expand

Commit Message

Alex Dewar Aug. 12, 2020, 2:12 p.m. UTC
Fix typos in nfs4xdr.c.

Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
---
 fs/nfsd/nfs4xdr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Frank van der Linden Aug. 12, 2020, 8:37 p.m. UTC | #1
On Wed, Aug 12, 2020 at 03:12:52PM +0100, Alex Dewar wrote:
> 
> Fix typos in nfs4xdr.c.
> 
> Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
> ---
>  fs/nfsd/nfs4xdr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
> index 1a0341fd80f9a..3db789139a71f 100644
> --- a/fs/nfsd/nfs4xdr.c
> +++ b/fs/nfsd/nfs4xdr.c
> @@ -4828,7 +4828,7 @@ nfsd4_encode_listxattrs(struct nfsd4_compoundres *resp, __be32 nfserr,
>                 slen = strlen(sp);
> 
>                 /*
> -                * Check if this a user. attribute, skip it if not.
> +                * Check if this is a user attribute, skip it if not.
>                  */
>                 if (strncmp(sp, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN))
>                         goto contloop;
> --
> 2.28.0
> 

"this a" should indeed by "this is a", but "user." is not a typo - it is
talking about checking the prefix of the extended attribute, which is
"user.", so the "." is intended to be there.

Thanks,

- Frank
diff mbox series

Patch

diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 1a0341fd80f9a..3db789139a71f 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -4828,7 +4828,7 @@  nfsd4_encode_listxattrs(struct nfsd4_compoundres *resp, __be32 nfserr,
 		slen = strlen(sp);
 
 		/*
-		 * Check if this a user. attribute, skip it if not.
+		 * Check if this is a user attribute, skip it if not.
 		 */
 		if (strncmp(sp, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN))
 			goto contloop;