[PATCH] nfsd: fix comment typo in nfsxdr

Joseph Salisbury posted 1 patch 3 weeks ago
fs/nfsd/nfsxdr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] nfsd: fix comment typo in nfsxdr
Posted by Joseph Salisbury 3 weeks ago
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")
Cc: stable@vger.kernel.org
Signed-off-by: Joseph Salisbury <joseph.salisbury@oracle.com>
---
 fs/nfsd/nfsxdr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfsd/nfsxdr.c b/fs/nfsd/nfsxdr.c
index fc262ceafca9..ae71e0621317 100644
--- a/fs/nfsd/nfsxdr.c
+++ b/fs/nfsd/nfsxdr.c
@@ -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
-- 
2.47.3
Re: [PATCH] nfsd: fix comment typo in nfsxdr
Posted by Chuck Lever 3 weeks ago
From: Chuck Lever <chuck.lever@oracle.com>

On Mon, 16 Mar 2026 14:28:45 -0400, Joseph Salisbury wrote:
> 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