]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: clear i_state_flags when alloc inode
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 4 Nov 2025 08:12:24 +0000 (16:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:15 +0000 (10:14 +0100)
commit9a424b99d5617738971b74ac3be0d4ccbe76b79f
tree6ee451b44f2cfffad01baf72c8e4c2aaf14ee3f9
parent5b154e901fda2e98570b8f426a481f5740097dc2
ext4: clear i_state_flags when alloc inode

commit 4091c8206cfd2e3bb529ef260887296b90d9b6a2 upstream.

i_state_flags used on 32-bit archs, need to clear this flag when
alloc inode.
Find this issue when umount ext4, sometimes track the inode as orphan
accidently, cause ext4 mesg dump.

Fixes: acf943e9768e ("ext4: fix checks for orphan inodes")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-ID: <20251104-ext4-v1-1-73691a0800f9@nxp.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/ialloc.c
fs/ext4/inode.c
fs/ext4/super.c