linux/fs/gfs2
Andreas Gruenbacher ae35ac3c4b gfs2: fix O_SYNC write handling
commit 6e5e41e2dc upstream.

In gfs2_file_write_iter, for direct writes, the error checking in the buffered
write fallback case is incomplete.  This can cause inode write errors to go
undetected.  Fix and clean up gfs2_file_write_iter along the way.

Based on a proposed fix by Christoph Hellwig <hch@lst.de>.

Fixes: 967bcc91b0 ("gfs2: iomap direct I/O support")
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-11 04:35:35 -08:00
..
acl.c
acl.h
aops.c gfs2: Minor PAGE_SIZE arithmetic cleanups 2019-09-04 20:22:06 +02:00
aops.h
bmap.c gfs2: clear buf_in_tr when ending a transaction in sweep_bh_for_rgrps 2019-09-17 16:50:50 +02:00
bmap.h
dentry.c gfs2: untangle the logic in gfs2_drevalidate 2019-09-03 09:42:41 +02:00
dir.c gfs2: Delete an unnecessary check before brelse() 2019-09-04 20:22:17 +02:00
dir.h gfs2: Delete an unnecessary check before brelse() 2019-09-04 20:22:17 +02:00
export.c
file.c gfs2: fix O_SYNC write handling 2020-02-11 04:35:35 -08:00
gfs2.h
glock.c gfs2: Use async glocks for rename 2019-09-04 20:22:17 +02:00
glock.h gfs2: Use async glocks for rename 2019-09-04 20:22:17 +02:00
glops.c
glops.h
incore.h Merge branch 'work.mount3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2019-09-24 12:33:34 -07:00
inode.c gfs2: Use async glocks for rename 2019-09-04 20:22:17 +02:00
inode.h
Kconfig
lock_dlm.c gfs2: Fix recovery slot bumping 2019-09-03 09:42:41 +02:00
log.c gfs2: fix glock reference problem in gfs2_trans_remove_revoke 2019-12-21 11:04:34 +01:00
log.h gfs2: fix glock reference problem in gfs2_trans_remove_revoke 2019-12-21 11:04:34 +01:00
lops.c gfs2: fix gfs2_find_jhead that returns uninitialized jhead with seq 0 2020-02-11 04:35:35 -08:00
lops.h
main.c
Makefile
meta_io.c
meta_io.h
ops_fstype.c gfs2: Fix initialisation of args for remount 2019-10-30 12:16:53 +01:00
quota.c gfs2: Minor PAGE_SIZE arithmetic cleanups 2019-09-04 20:22:06 +02:00
quota.h
recovery.c
recovery.h
rgrp.c gfs2: Fix possible fs name overflows 2019-09-03 09:42:41 +02:00
rgrp.h
super.c Merge branch 'work.mount3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2019-09-24 12:33:34 -07:00
super.h gfs2: Convert gfs2 to fs_context 2019-09-18 22:47:05 -04:00
sys.c
sys.h
trace_gfs2.h
trans.c gfs2: fix glock reference problem in gfs2_trans_remove_revoke 2019-12-21 11:04:34 +01:00
trans.h
util.c gfs2: Fix possible fs name overflows 2019-09-03 09:42:41 +02:00
util.h
xattr.c
xattr.h