]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 24 Feb 2010 14:52:53 +0000 (09:52 -0500)
commitcb919363b10f83b53b43e3034b420673c90d88ba
treefd8bad55c3c9903b6c798b838396bc832bbf7f4b
parent98c179a7d12cba07c5cb8b2d2b817fb38f7cf1b6
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