aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2020-05-08 09:18:03 -0500
committerAndreas Gruenbacher <agruenba@redhat.com>2020-06-02 19:45:05 +0200
commitbbae10fac2dceb6c8585d385cc689f4e7ce81b1f (patch)
tree87555ff00651d4fa512397bdd3a76c81f9db0047 /fs/gfs2/inode.c
parentdocs: filesystems: convert gfs2-glocks.txt to ReST (diff)
downloadlinux-dev-bbae10fac2dceb6c8585d385cc689f4e7ce81b1f.tar.xz
linux-dev-bbae10fac2dceb6c8585d385cc689f4e7ce81b1f.zip
gfs2: Don't ignore inode write errors during inode_go_sync
Before for this patch, function inode_go_sync ignored io errors during inode_go_sync, overwriting them with metadata write errors: error = filemap_fdatawait(mapping); mapping_set_error(mapping, error); } error = filemap_fdatawait(metamapping); ... return error; So any errors returned by the inode write would be forgotten if the metadata write succeeded. This patch still does both writes, but only sets error if it's still zero. That way, any errors will be reported by to the caller, do_xmote, which will take appropriate action and report the error. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
0 files changed, 0 insertions, 0 deletions