Skip to content

Commit

Permalink
[PATCH] quota: fix error code for ext2_new_inode()
Browse files Browse the repository at this point in the history
The quota check in ext2_new_inode() returns ENOSPC where it should return
EDQUOT instead.

Signed-off-by: Herbert Pötzl <herbert@13thfloor.at>
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Herbert Poetzl authored and Linus Torvalds committed Feb 3, 2006
1 parent 69dcc99 commit 9d9c053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext2/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ struct inode *ext2_new_inode(struct inode *dir, int mode)
insert_inode_hash(inode);

if (DQUOT_ALLOC_INODE(inode)) {
err = -ENOSPC;
err = -EDQUOT;
goto fail_drop;
}

Expand Down

0 comments on commit 9d9c053

Please sign in to comment.