gfs2: Clean up the error handling in gfs2_page_mkwrite
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 13 May 2021 12:30:31 +0000 (14:30 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 29 Jun 2021 08:56:51 +0000 (10:56 +0200)
commit0fc3bcd6b6e34281254658bef27c45ec8c19e50c
tree218e17a070f9e8c2e957ee5881325969133fdce0
parent5d49d3508b3c67201bd3e1bf7f4ef049111b7051
gfs2: Clean up the error handling in gfs2_page_mkwrite

We're setting an error number so that block_page_mkwrite_return
translates it into the corresponding VM_FAULT_* code in several places,
but this is getting confusing, so set the VM_FAULT_* codes directly
instead.  (No change in functionality.)

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c