aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext2/xattr.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-02-01 16:54:11 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-02-01 16:54:11 -0800
commitb60da2922cda70cf11a4c6d907da48ff7875781d (patch)
tree72dab0c7e1846c1f09a292a5f813410009da108d /fs/ext2/xattr.c
parent13be15d3a75f967d753bbbde0dc4703dcfb7a90c (diff)
downloadhistory-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.c2
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;