This is in preparation for removing the flag down the road. Signed-off-by: Mateusz Guzik --- fs/fs-writeback.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 6800886c4d10..633537003b88 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -1866,6 +1866,8 @@ static int writeback_single_inode(struct inode *inode, * as it can be finally deleted at this moment. */ if (!(inode_state_read(inode) & I_FREEING)) { + if (inode_state_read(inode) & I_WILL_FREE) + WARN_ON_ONCE(inode_state_read(inode) & I_DIRTY_ALL); /* * If the inode is now fully clean, then it can be safely * removed from its writeback list (if any). Otherwise the -- 2.48.1