diff options
author | Andrew Morton <akpm@osdl.org> | 2005-02-01 16:54:11 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-02-01 16:54:11 -0800 |
commit | b60da2922cda70cf11a4c6d907da48ff7875781d (patch) | |
tree | 72dab0c7e1846c1f09a292a5f813410009da108d /fs/ext2/xattr.c | |
parent | 13be15d3a75f967d753bbbde0dc4703dcfb7a90c (diff) | |
download | history-b60da2922cda70cf11a4c6d907da48ff7875781d.tar.gz |
[PATCH] ext2-quota-leak-fix fix
Jan points out that this should have been -ENOSPC.
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext2/xattr.c')
-rw-r--r-- | fs/ext2/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index d29171629b0ff1..39186bfd9bb9f5 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c @@ -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; |