gfs2: move setting current->backing_dev_info
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Jan 2020 15:38:29 +0000 (16:38 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 6 Feb 2020 16:35:23 +0000 (17:35 +0100)
commit4c0e8dda608a51855225c611b5c6b442f95fbc56
tree1598ac0a5bbcde38cc7695918665a8bcb4bf5a92
parent7582026f6f3588ecebd281965c8a71aff6fb6158
gfs2: move setting current->backing_dev_info

Set current->backing_dev_info just around the buffered write calls to
prepare for the next fix.

Fixes: 967bcc91b044 ("gfs2: iomap direct I/O support")
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c