Commit 9d9c0531 authored by Herbert Poetzl's avatar Herbert Poetzl Committed by Linus Torvalds

[PATCH] quota: fix error code for ext2_new_inode()

The quota check in ext2_new_inode() returns ENOSPC where it should return
EDQUOT instead.
Signed-off-by: default avatarHerbert Pötzl <herbert@13thfloor.at>
Acked-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 69dcc991
......@@ -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;
}
......
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