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: v2.6.16-rc3~237 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9d9c0531c91755a90b646b27bb722d59ee3eb46d;p=linux-2.6-omap-h63xx.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 74714af4ae6..e52765219e1 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; }