Commit 6d0ce49d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix ext3 space accounting bug on ENOSPC

From: Jan Kara <jack@suse.cz>

Fix en error exit path so that we correctly unaccount for quota-related space
reservations on ENOSPC.
parent 2f45861d
......@@ -517,7 +517,7 @@ ext3_new_block(handle_t *handle, struct inode *inode, unsigned long goal,
sbi->s_resuid != current->fsuid &&
(sbi->s_resgid == 0 || !in_group_p (sbi->s_resgid))) {
*errp = -ENOSPC;
return 0;
goto out;
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment