[PATCH v1] fs: fix spelling mistakes in comment
From: fffsqian
Date: Tue May 26 2026 - 23:15:54 EST
From: Qingshuang Fu <fuqingshuang@xxxxxxxxxx>
Fix three spelling errors in the comment for an internal file structure
allocation function:
- happend → happened
- over → exceed (grammatical fix)
- int → in
Signed-off-by: Qingshuang Fu <fuqingshuang@xxxxxxxxxx>
---
fs/file_table.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/file_table.c b/fs/file_table.c
index 16e52e7fc2ac..fa06b660f116 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -231,13 +231,13 @@ static int init_file(struct file *f, int flags, const struct cred *cred)
}
/* Find an unused file structure and return a pointer to it.
- * Returns an error pointer if some error happend e.g. we over file
+ * Returns an error pointer if some error happened e.g. we exceed the file
* structures limit, run out of memory or operation is not permitted.
*
* Be very careful using this. You are responsible for
* getting write access to any mount that you might assign
* to this filp, if it is opened for write. If this is not
- * done, you will imbalance int the mount's writer count
+ * done, you will imbalance in the mount's writer count
* and a warning at __fput() time.
*/
struct file *alloc_empty_file(int flags, const struct cred *cred)
base-commit: eb3f4b7426cfd2b79d65b7d37155480b32259a11
--
2.25.1