]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit875da477c16d180e252a815714e3e617729292a2
treec8ffa501d66399656377b7b4c633aaadd1604467
parentf5fd19a09e2de4c4ffcaa470499cc91d15cb98e6
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