diff options
author | Dave Chinner <dchinner@redhat.com> | 2016-12-09 06:49:54 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-12-09 06:49:54 +0100 |
commit | 2291dab2c9d1880efd19469df2042e2277c8b7a4 (patch) | |
tree | 2f3d971e8a5bab28575c94b4bfe01c3acf115dee /fs/xfs/xfs_buf.c | |
parent | xfs: ignore leaf attr ichdr.count in verifier during log replay (diff) | |
download | linux-2291dab2c9d1880efd19469df2042e2277c8b7a4.tar.xz 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.c | 3 |
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); } |