Skip to content

Commit deafd21

Browse files
Zhou Yuhangbrauner
authored andcommitted
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>
1 parent 15623c8 commit deafd21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/file_table.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static int init_file(struct file *f, int flags, const struct cred *cred)
192192
f->f_sb_err = 0;
193193

194194
/*
195-
* We're SLAB_TYPESAFE_BY_RCU so initialize f_count last. While
195+
* We're SLAB_TYPESAFE_BY_RCU so initialize f_ref last. While
196196
* fget-rcu pattern users need to be able to handle spurious
197197
* refcount bumps we should reinitialize the reused file first.
198198
*/

0 commit comments

Comments
 (0)