]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/xfs/xfs_buf.c
xfs: Always flush caches when integrity is required
[mirror_ubuntu-bionic-kernel.git] / fs / xfs / xfs_buf.c
index b5b9bffe352074806910a064ae41a941c97678c8..7d3afa0bddd3920aa167751c58b797f08121a4b6 100644 (file)
@@ -1711,8 +1711,7 @@ xfs_free_buftarg(
        percpu_counter_destroy(&btp->bt_io_count);
        list_lru_destroy(&btp->bt_lru);
 
-       if (mp->m_flags & XFS_MOUNT_BARRIER)
-               xfs_blkdev_issue_flush(btp);
+       xfs_blkdev_issue_flush(btp);
 
        kmem_free(btp);
 }