]> www.infradead.org Git - users/hch/misc.git/commitdiff
fs: update comment in init_file()
authorZhou Yuhang <zhouyuhang@kylinos.cn>
Wed, 24 Sep 2025 12:21:39 +0000 (20:21 +0800)
committerChristian Brauner <brauner@kernel.org>
Tue, 7 Oct 2025 10:48:33 +0000 (12:48 +0200)
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>
fs/file_table.c

index b223d873e48b0a0b61eefc249c5d566441adcd31..cd4a3db4659ac4e9d1ada268b8770ad4067f6192 100644 (file)
@@ -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.
         */