Skip to contentSkip to conversation

nfsd: fix comment typo in nfsxdr

PATCH In review Joseph Salisbury 2 participants 2 messages Mar 16

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfsd: fix comment typo in nfsxdr

The file contains a spelling error in a source comment (occured).

Typos in comments reduce readability and make text searches less reliable for developers and maintainers.

Replace 'occured' with 'occurred' in the affected comment. This is a comment-only cleanup and does not change behavior.

Fixes f5dcccd647da ("NFSD: Update the NFSv2 READDIR entry encoder to use struct xdr_stream")
---
 fs/nfsd/nfsxdr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/nfsxdr.c +1 -1
index fc262ceafca9..ae71e0621317 100644
@@ -605,7 +605,7 @@ svcxdr_encode_entry_common(struct nfsd_readdirres *resp, const char *name,
  *
  * Return values:
  *   %0: Entry was successfully encoded.
- *   %-EINVAL: An encoding problem occured, secondary status code in resp->common.err
+ *   %-EINVAL: An encoding problem occurred, secondary status code in resp->common.err
  *
  * On exit, the following fields are updated:
  *   - resp->xdr
Signature · 1 line
2.47.3
maintainer
#1 lore raw

From: Chuck Lever <[email protected]>

Quoted 9 lines · Joseph Salisbury

The file contains a spelling error in a source comment (occured).

Typos in comments reduce readability and make text searches less reliable for developers and maintainers.

Replace 'occured' with 'occurred' in the affected comment. This is a comment-only cleanup and does not change behavior.

[...]

Applied to nfsd-testing, thanks!

Removed Fixes: and Cc: stable -- not appropriate for fixes to misspellings in code comments.

[1/1] nfsd: fix comment typo in nfsxdr

      commit: f5d9cf47c90f38e1332436717fdb6683d378f32d

--
Chuck Lever