bcachefs: Remove redundant initialization in bch2_vfs_inode_init()
authorYouling Tang <tangyouling@kylinos.cn>
Fri, 27 Sep 2024 08:40:42 +0000 (16:40 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:17 +0000 (01:36 -0500)
commit924e81c530ccbe986fd01381b495d410f8a63805
treea9479fa329f4c86692a03f6c30fd1246bd471826
parent5abd7ac19ddac6dd7e9ef872e92b76e200d99531
bcachefs: Remove redundant initialization in bch2_vfs_inode_init()

`inode->v.i_ino` has been initialized to `inum.inum`. If `inum.inum` and
`bi->bi_inum` are not equal, BUG_ON() is triggered in
bch2_inode_update_after_write().

Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c