If the inode is on the LRU list then it has a valid reference and we do not need to check for these flags. Signed-off-by: Josef Bacik --- fs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/inode.c b/fs/inode.c index 082addba546c..2ceceb30be4d 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -666,7 +666,7 @@ void inode_lru_list_del(struct inode *inode) static void inode_pin_lru_isolating(struct inode *inode) { lockdep_assert_held(&inode->i_lock); - WARN_ON(inode->i_state & (I_LRU_ISOLATING | I_FREEING | I_WILL_FREE)); + WARN_ON(inode->i_state & I_LRU_ISOLATING); inode->i_state |= I_LRU_ISOLATING; } -- 2.49.0