|
@@ -1854,11 +1854,11 @@ repeat:
|
|
|
|
|
|
if (ext4_claim_free_blocks(sbi, total)) {
|
|
|
spin_unlock(&EXT4_I(inode)->i_block_reservation_lock);
|
|
|
+ vfs_dq_release_reservation_block(inode, total);
|
|
|
if (ext4_should_retry_alloc(inode->i_sb, &retries)) {
|
|
|
yield();
|
|
|
goto repeat;
|
|
|
}
|
|
|
- vfs_dq_release_reservation_block(inode, total);
|
|
|
return -ENOSPC;
|
|
|
}
|
|
|
EXT4_I(inode)->i_reserved_data_blocks += nrblocks;
|