Commit b60da292 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ext2-quota-leak-fix fix

Jan points out that this should have been -ENOSPC.

Cc: Jan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 13be15d3
......@@ -709,7 +709,7 @@ ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh,
/* In case sync failed due to ENOSPC the inode was actually
* written (only some dirty data were not) so we just proceed
* as if nothing happened and cleanup the unused block */
if (error && error != ENOSPC) {
if (error && error != -ENOSPC) {
if (new_bh && new_bh != old_bh)
DQUOT_FREE_BLOCK(inode, 1);
goto cleanup;
......
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