summaryrefslogtreecommitdiffstats
path: root/scripts/profile2linkerlist.pl
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-08-17 16:19:52 +0200
committerJosef Bacik <josef@redhat.com>2011-10-19 21:12:36 +0200
commit1b9c332b6c92e992b1971a08412c6f460a54b514 (patch)
treeefdff83971345340faaf57823c0316962445a458 /scripts/profile2linkerlist.pl
parentBtrfs: kill btrfs_truncate_reserve_metadata (diff)
downloadlinux-1b9c332b6c92e992b1971a08412c6f460a54b514.tar.xz
linux-1b9c332b6c92e992b1971a08412c6f460a54b514.zip
Btrfs: only reserve space in fallocate if we have to do a preallocate
Lukas found a problem where if he tries to fallocate over the same region twice and the first fallocate took up all the space we would fail with ENOSPC. This is because we reserve the total space we want to use for fallocate, regardless of wether or not we will have to actually preallocate. So instead move the check into the loop where we actually have to do the preallocate. Thanks, Tested-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'scripts/profile2linkerlist.pl')
0 files changed, 0 insertions, 0 deletions