diff options
author | Dave Chinner <dchinner@redhat.com> | 2016-12-09 08:49:54 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-12-09 08:49:54 +0300 |
commit | 2291dab2c9d1880efd19469df2042e2277c8b7a4 (patch) | |
tree | 2f3d971e8a5bab28575c94b4bfe01c3acf115dee /fs/xfs/xfs_buf.c | |
parent | 2e1d23370e75d7d89350d41b4ab58c7f6a0e26b2 (diff) | |
download | linux-2291dab2c9d1880efd19469df2042e2277c8b7a4.tar.xz |
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); } |