]> Git Repo - J-linux.git/commitdiff
bcachefs: remove now spurious i_state initialization
authorMateusz Guzik <[email protected]>
Tue, 11 Jun 2024 12:06:26 +0000 (14:06 +0200)
committerChristian Brauner <[email protected]>
Thu, 13 Jun 2024 11:40:45 +0000 (13:40 +0200)
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]>
fs/bcachefs/fs.c

index 96040a95cf4667069ad8dac4cc02a56f45382dc8..8122214e00a3888457499d6bc4340aec4662575d 100644 (file)
@@ -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);
This page took 0.060489 seconds and 4 git commands to generate.