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
..
2014-11-19 13:01:20 -05:00
2014-08-08 15:57:24 -07:00
2014-11-19 13:01:20 -05:00
2014-12-14 16:10:09 -08:00
2015-02-16 17:56:03 -08:00
2015-02-16 17:56:04 -08:00
2014-12-18 19:08:10 -08:00
2014-08-07 14:40:09 -04:00
2014-11-28 18:23:44 -08:00
2015-02-13 21:21:36 -08:00
2015-02-09 14:58:50 -05:00
2015-02-15 11:11:47 -08:00
2015-02-05 16:34:25 +01:00
2014-08-07 14:40:09 -04:00
2014-11-19 13:01:20 -05:00
2015-02-16 17:56:04 -08:00
2015-02-02 18:09:38 +01:00
2015-02-16 17:56:03 -08:00
2014-08-26 09:35:56 +02:00
2014-11-19 13:01:25 -05:00
2014-11-19 13:01:26 -05:00