ext4: Add flag to files with blocks intentionally past EOF
authorJiaying Zhang <jiayingz@google.com>
Wed, 24 Feb 2010 14:52:53 +0000 (09:52 -0500)
committerMatt Sealey <matt@genesi-usa.com>
Mon, 29 Nov 2010 23:03:14 +0000 (17:03 -0600)
commit193c53d7728bcf9f50223d229ac8c8b7d692762f
tree3052de58487eab9ed8bc4eb4bad26f60e07309b0
parent42155a3ec33d0a1c6f4a479b98f6c10aba157dee
ext4: Add flag to files with blocks intentionally past EOF

fallocate() may potentially instantiate blocks past EOF, depending
on the flags used when it is called.

e2fsck currently has a test for blocks past i_size, and it
sometimes trips up - noticeably on xfstests 013 which runs fsstress.

This patch from Jiayang does fix it up - it (along with
e2fsprogs updates and other patches recently from Aneesh) has
survived many fsstress runs in a row.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jiaying Zhang <jiayingz@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/inode.c
fs/ext4/ioctl.c