]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: flush data dev on external log write
authorDave Chinner <dchinner@redhat.com>
Tue, 27 Jul 2021 23:23:46 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 29 Jul 2021 16:27:27 +0000 (09:27 -0700)
commitb1e27239b9169f07edba0ca0e52805645a1768ba
tree33fdec846f13bd42f7f79d1d57182306d9698a8c
parentb102a46ce16fd5550aed882c3c5b95f50da7992c
xfs: flush data dev on external log write

We incorrectly flush the log device instead of the data device when
trying to ensure metadata is correctly on disk before writing the
unmount record.

Fixes: eef983ffeae7 ("xfs: journal IO cache flush reductions")
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_log.c