From: Mateusz Guzik Date: Tue, 11 Jun 2024 12:06:26 +0000 (+0200) Subject: bcachefs: remove now spurious i_state initialization X-Git-Tag: v6.11-rc1~237^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=267574dee6ae0da68f5b454a30ff276d45976cf8;p=thirdparty%2Flinux.git bcachefs: remove now spurious i_state initialization inode_init_always started setting the field to 0. Signed-off-by: Mateusz Guzik Link: https://lore.kernel.org/r/20240611120626.513952-5-mjguzik@gmail.com Acked-by: Kent Overstreet Signed-off-by: Christian Brauner --- diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index 96040a95cf466..8122214e00a38 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -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);