We need double space when preallocing for a transaction,
so that included Directories as well.
Signed-off-by: NeilBrown <neilb@suse.de>
LAFSI(b->inode)->type == TypeInodeFile ||
LAFSI(b->inode)->type == TypeOrphanList ||
LAFSI(b->inode)->type == TypeQuota ||
+ LAFSI(b->inode)->type == TypeDir ||
LAFSI(b->inode)->type == TypeSegmentMap) {
if (credits <= 0)
need += !test_bit(B_NCredit, &b->flags);