Commit 267574de authored by Mateusz Guzik's avatar Mateusz Guzik Committed by Christian Brauner

bcachefs: remove now spurious i_state initialization

inode_init_always started setting the field to 0.
Signed-off-by: default avatarMateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20240611120626.513952-5-mjguzik@gmail.comAcked-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent e9dae2fb
......@@ -228,7 +228,6 @@ static struct bch_inode_info *__bch2_new_inode(struct bch_fs *c)
two_state_lock_init(&inode->ei_pagecache_lock);
INIT_LIST_HEAD(&inode->ei_vfs_inode_list);
mutex_init(&inode->ei_quota_lock);
inode->v.i_state = 0;
if (unlikely(inode_init_always(c->vfs_sb, &inode->v))) {
kmem_cache_free(bch2_inode_cache, inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment