mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-06 05:02:31 +00:00
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>
This commit is contained in:
parent
0fe251fd82
commit
db6b114bd5
@ -1752,7 +1752,6 @@ static void bch2_vfs_inode_init(struct btree_trans *trans,
|
||||
bch2_inode_update_after_write(trans, inode, bi, ~0);
|
||||
|
||||
inode->v.i_blocks = bi->bi_sectors;
|
||||
inode->v.i_ino = bi->bi_inum;
|
||||
inode->v.i_rdev = bi->bi_dev;
|
||||
inode->v.i_generation = bi->bi_generation;
|
||||
inode->v.i_size = bi->bi_size;
|
||||
|
Loading…
Reference in New Issue
Block a user