XFS: handle hole punching via fallocate properly
authorJosef Bacik <josef@redhat.com>
Thu, 18 Nov 2010 01:46:16 +0000 (20:46 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 13 Jan 2011 01:16:43 +0000 (20:16 -0500)
commitc25d246715b87ad37e69e7abd1a0fed781423fa2
tree18c13bcaa9e125a362d7d0ff24787d859d8d9b64
parent79124f18b335172e1916075c633745e12dae1dac
XFS: handle hole punching via fallocate properly

This patch simply allows XFS to handle the hole punching flag in fallocate
properly.  I've tested this with a little program that does a bunch of random
hole punching with FL_KEEP_SIZE and without it to make sure it does the right
thing.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/xfs/linux-2.6/xfs_iops.c