summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf.c
diff options
context:
space:
mode:
authorDave Chinner2016-12-09 06:49:54 +0100
committerDave Chinner2016-12-09 06:49:54 +0100
commit2291dab2c9d1880efd19469df2042e2277c8b7a4 (patch)
tree2f3d971e8a5bab28575c94b4bfe01c3acf115dee /fs/xfs/xfs_buf.c
parentxfs: ignore leaf attr ichdr.count in verifier during log replay (diff)
downloadkernel-qcow2-linux-2291dab2c9d1880efd19469df2042e2277c8b7a4.tar.gz
kernel-qcow2-linux-2291dab2c9d1880efd19469df2042e2277c8b7a4.tar.xz
kernel-qcow2-linux-2291dab2c9d1880efd19469df2042e2277c8b7a4.zip
xfs: Always flush caches when integrity is required
There is no reason anymore for not issuing device integrity operations when teh filesystem requires ordering or data integrity guarantees. We should always issue cache flushes and FUA writes where necessary and let the underlying storage optimise them as necessary for correct integrity operation. Signed-Off-By: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_buf.c')
-rw-r--r--fs/xfs/xfs_buf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index b5b9bffe3520..7d3afa0bddd3 100644
--- a/fs/xfs/xfs_buf.c
+++ b/fs/xfs/xfs_buf.c
@@ -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);
}