]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
xfs: Always flush caches when integrity is required
authorDave Chinner <dchinner@redhat.com>
Fri, 9 Dec 2016 05:49:54 +0000 (16:49 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 9 Dec 2016 05:49:54 +0000 (16:49 +1100)
commit2291dab2c9d1880efd19469df2042e2277c8b7a4
tree2f3d971e8a5bab28575c94b4bfe01c3acf115dee
parent2e1d23370e75d7d89350d41b4ab58c7f6a0e26b2
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>
fs/xfs/xfs_buf.c
fs/xfs/xfs_file.c
fs/xfs/xfs_log.c