]> git.baikalelectronics.ru Git - kernel.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)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 20 May 2021 11:31:36 +0000 (13:31 +0200)
commitc7cd2139f757d2aae11e909f72cb08a846c66191
tree9c9107b10571b4445534df1c3b7f1796fd9af422
parent87d9f8b77b5545016adf3cfc494e6ea6899acca7
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