diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 9876d44e642d..e8c320252382 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -520,6 +520,9 @@ static bool inode_prepare_wbs_switch(struct inode *inode, */ smp_mb(); + if (IS_DAX(inode)) + return false; + /* while holding I_WB_SWITCH, no one else can update the association */ spin_lock(&inode->i_lock); if (!(inode->i_sb->s_flags & SB_ACTIVE) ||