linux/fs/affs
Fabian Frederick 92b20708f9 fs/affs/file.c: fix direct IO writes beyond EOF
Use the same fallback to normal IO in case of write
operations beyond EOF as fat direct IO. This patch fixes

fsx file -d -Z -r 4096 -w 4096

Report:
  129(129 mod 256): TRUNCATE DOWN from 0x3ff01 to 0xb3f6
  130(130 mod 256): WRITE    0x22000 thru 0x2dfff (0xc000 bytes) HOLE

Thanks to Jan for helping me on this problem.

The ideal solution suggested by Jan Kara would be to use
cont_write_begin() but affs direct_IO shouldn't be used a lot anyway...

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-02-17 14:34:52 -08:00
..
affs.h fs/affs/amigaffs.c: use va_format instead of buffer/vnsprintf 2014-12-13 12:42:51 -08:00
amigaffs.c fs/affs: fix casting in printed messages 2015-02-17 14:34:52 -08:00
bitmap.c fs/affs: pr_debug cleanup 2014-06-06 16:08:13 -07:00
Changes remove obsolete references to powertweak 2013-11-27 20:34:32 -08:00
dir.c fs/affs: fix casting in printed messages 2015-02-17 14:34:52 -08:00
file.c fs/affs/file.c: fix direct IO writes beyond EOF 2015-02-17 14:34:52 -08:00
inode.c fs/affs: fix casting in printed messages 2015-02-17 14:34:52 -08:00
Kconfig fs/affs: remove depends on CONFIG_EXPERIMENTAL 2013-01-21 14:39:04 -08:00
Makefile fs: change to new flag variable 2011-03-17 14:02:57 +01:00
namei.c fs/affs: fix casting in printed messages 2015-02-17 14:34:52 -08:00
super.c fs/affs: remove redundant sys_tz declarations 2014-10-14 02:18:22 +02:00
symlink.c fs/affs: pr_debug cleanup 2014-06-06 16:08:13 -07:00