OSDN Git Service

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)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 20 May 2021 11:31:36 +0000 (13:31 +0200)
commit43a511c44e58e357a687d61a20cf5ef1dc9e5a7c
tree9c9107b10571b4445534df1c3b7f1796fd9af422
parentd07f6ca923ea0927a1024dfccafc5b53b61cfecc
gfs2: Prevent direct-I/O write fallback errors from getting lost

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>
fs/gfs2/file.c