diff --git a/fs/inode.c b/fs/inode.c index e445be2a18f978a874381022620ad8bee4560071..5aab80dc008cf681e64f47a32759055bc013b13f 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -1330,7 +1330,8 @@ static void iput_final(struct inode *inode) } inode->i_state |= I_FREEING; - inode_lru_list_del(inode); + if (!list_empty(&inode->i_lru)) + inode_lru_list_del(inode); spin_unlock(&inode->i_lock); evict(inode);