Btrfs: set i_size properly when fallocating and we already
authorJosef Bacik <josef@redhat.com>
Thu, 18 Aug 2011 14:36:39 +0000 (10:36 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 18 Aug 2011 14:36:39 +0000 (10:36 -0400)
commitf1e490a7ebe41e06324abbbcd86005b0af02a375
treec8ffa501d66399656377b7b4c633aaadd1604467
parentf81c9cdc567cd3160ff9e64868d9a1a7ee226480
Btrfs: set i_size properly when fallocating and we already

xfstests exposed a problem with preallocate when it fallocates a range that
already has an extent.  We don't set the new i_size properly because we see that
we already have an extent.  This isn't right and we should update i_size if the
space already exists.  With this patch we now pass xfstests 075.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c