Revision bbb495c2ed9d34894cb3d6d366866fc92a2e1adc authored by Josef Bacik on 14 October 2011, 17:37:45 UTC, committed by Josef Bacik on 19 October 2011, 19:12:56 UTC
Before the only reason to commit the transaction to recover space in
reserve_metadata_bytes() was if there were enough pinned_bytes to satisfy our
reservation.  But now we have the delayed inode stuff which will hold it's
reservations until we commit the transaction.  So say we max out our reservation
by creating a bunch of files but don't have any pinned bytes we will ENOSPC out
early even though we could commit the transaction and get that space back.  So
now just unconditionally commit the transaction since currently there is no way
to know how much metadata space is being reserved by delayed inode stuff.
Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
1 parent ed3ee9f
Raw File
mkversion
if [ ! -f .version ]
then
    echo 1
else
    expr 0`cat .version` + 1
fi
back to top