summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQingshuang Fu <fuqingshuang@kylinos.cn>2026-05-27 13:00:24 +0300
committerChristian Brauner <brauner@kernel.org>2026-05-28 15:05:59 +0300
commit5afe734e76214a06f66a1e679aaa032d0e532516 (patch)
tree7ef166633fcb45769f62812155512dc6d95b587e
parentcfe724c85facad86c62c3d01c9816bd738099f01 (diff)
downloadlinux-5afe734e76214a06f66a1e679aaa032d0e532516.tar.xz
fs: fix spelling mistakes in comment
Fix three spelling errors in the comment for an internal file structure allocation function: - happend → happened - over → exceed (grammatical fix) - int → in Changes since v1: - Fix comma after e.g. - Fix incorrect use of "imbalance" Signed-off-by: Qingshuang Fu <fuqingshuang@kylinos.cn> Link: https://patch.msgid.link/20260527100025.960339-1-fffsqian@163.com Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
-rw-r--r--fs/file_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/file_table.c b/fs/file_table.c
index 16e52e7fc2ac..3c08832aa387 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, the mount's writer count will be wrong
* and a warning at __fput() time.
*/
struct file *alloc_empty_file(int flags, const struct cred *cred)