Skip to content

Commit 267574d

Browse files
mjguzikbrauner
authored andcommitted
bcachefs: remove now spurious i_state initialization
inode_init_always started setting the field to 0. Signed-off-by: Mateusz Guzik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Kent Overstreet <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent e9dae2f commit 267574d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/bcachefs/fs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ static struct bch_inode_info *__bch2_new_inode(struct bch_fs *c)
228228
two_state_lock_init(&inode->ei_pagecache_lock);
229229
INIT_LIST_HEAD(&inode->ei_vfs_inode_list);
230230
mutex_init(&inode->ei_quota_lock);
231-
inode->v.i_state = 0;
232231

233232
if (unlikely(inode_init_always(c->vfs_sb, &inode->v))) {
234233
kmem_cache_free(bch2_inode_cache, inode);

0 commit comments

Comments
 (0)