mirror of https://gitee.com/openkylin/linux.git
[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: 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>
This commit is contained in:
parent
69dcc99199
commit
9d9c0531c9
|
@ -605,7 +605,7 @@ struct inode *ext2_new_inode(struct inode *dir, int mode)
|
||||||
insert_inode_hash(inode);
|
insert_inode_hash(inode);
|
||||||
|
|
||||||
if (DQUOT_ALLOC_INODE(inode)) {
|
if (DQUOT_ALLOC_INODE(inode)) {
|
||||||
err = -ENOSPC;
|
err = -EDQUOT;
|
||||||
goto fail_drop;
|
goto fail_drop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue