diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 6e6b3230ee4549354eb92f10244230d5f05e1b5d..672c99a2051b8c4bef71701de60a9a8ef4898b61 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -2833,7 +2833,7 @@ int ext4_orphan_add(handle_t *handle, struct inode *inode) * list entries can cause panics at unmount time. */ mutex_lock(&sbi->s_orphan_lock); - list_del(&EXT4_I(inode)->i_orphan); + list_del_init(&EXT4_I(inode)->i_orphan); mutex_unlock(&sbi->s_orphan_lock); } }