]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gfs2: Prevent direct-I/O write fallback errors from getting lost
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 10 May 2021 10:25:59 +0000 (12:25 +0200)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:48:11 +0000 (08:48 -0400)
commitf88375b1de30713598ba8e6f5716797e4ee3ec3f
treeccfc37ba59833e1015ea56adbdd2166772de50da
parente296c88f07ea85d87c5381433cc5c1189c7e8c80
gfs2: Prevent direct-I/O write fallback errors from getting lost

[ Upstream commit 43a511c44e58e357a687d61a20cf5ef1dc9e5a7c ]

When a direct I/O write falls entirely and falls back to buffered I/O and the
buffered I/O fails, the write failed with return value 0 instead of the error
number reported by the buffered I/O. Fix that.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/gfs2/file.c