From: Herbert Poetzl Date: Fri, 3 Feb 2006 11:04:37 +0000 (-0800) Subject: [PATCH] quota: fix error code for ext2_new_inode() X-Git-Tag: MMI-PSA29.97-13-9~52296 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d9c0531c91755a90b646b27bb722d59ee3eb46d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 Acked-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index 74714af4ae69..e52765219e16 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c @@ -605,7 +605,7 @@ got: insert_inode_hash(inode); if (DQUOT_ALLOC_INODE(inode)) { - err = -ENOSPC; + err = -EDQUOT; goto fail_drop; }