提交 9d9c0531 编写于 作者: H Herbert Poetzl 提交者: 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: NHerbert Pötzl <herbert@13thfloor.at>
Acked-by: NJan Kara <jack@suse.cz>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册