Skip to contentSkip to conversation

delayed allocation ENOSPC handling

RFC PATCH In review Mingming Cao 1 participant 1 message Jun 1, 2008

lore
Share & tools
lore
#0 lore raw

cover delayed allocation ENOSPC handling

The following series patches does block reservation for delayed allocation, to avoid ENOSPC later at page flush time.

Blocks(data and metadata) are reserved at da_write_begin() time, the freeblocks counter is updated by then, and the number of reserved blocks is store in per inode counter.

At the writepage time, the unused reserved meta blocks are returned back. At unlink/truncate time, reserved blocks are properly released.