mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
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>
This commit is contained in:
parent
15623c860c
commit
deafd21efd
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue