diff options
| author | Fabian Frederick <[email protected]> | 2015-02-17 21:46:15 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-02-17 22:34:52 +0000 |
| commit | 92b20708f9f0c6429b3b6865de567e721f509c75 (patch) | |
| tree | 384d16158bc762c47ff9ff0c2c3c2205b28acc28 /scripts/gdb/vmlinux-gdb.py | |
| parent | fs/affs/file.c: replace if/BUG by BUG_ON (diff) | |
| download | kernel-92b20708f9f0c6429b3b6865de567e721f509c75.tar.gz kernel-92b20708f9f0c6429b3b6865de567e721f509c75.zip | |
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 <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions
