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)
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>

No differences found