diff options
| author | Zhou Yuhang <zhouyuhang@kylinos.cn> | 2025-09-24 20:21:39 +0800 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-10-07 12:48:33 +0200 |
| commit | deafd21efdd106f9744e2339e0c70c0f4ba565c3 (patch) | |
| tree | 630ac25da610e0159d63b02f3bdaabc06f71da6d /fs/file_table.c | |
| parent | 15623c860c93aac71d22e7bedb7661ff2d3418de (diff) | |
fs: update comment in init_file()
The f_count member in struct file has been replaced by f_ref,
so update f_count to f_ref in the comment.
Signed-off-by: Zhou Yuhang <zhouyuhang@kylinos.cn>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/file_table.c')
| -rw-r--r-- | fs/file_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/file_table.c b/fs/file_table.c index b223d873e48b..cd4a3db4659a 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -192,7 +192,7 @@ static int init_file(struct file *f, int flags, const struct cred *cred) f->f_sb_err = 0; /* - * We're SLAB_TYPESAFE_BY_RCU so initialize f_count last. While + * We're SLAB_TYPESAFE_BY_RCU so initialize f_ref last. While * fget-rcu pattern users need to be able to handle spurious * refcount bumps we should reinitialize the reused file first. */ |