mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Herbert Poetzl <herbert@13thfloor.at>
To: Jan Kara <jack@suse.cz>, Linus Torvalds <torvalds@osdl.org>,
	Andrew Morton <akpm@osdl.org>
Cc: Linux Kernel ML <linux-kernel@vger.kernel.org>
Subject: [Patch] quota: fix error code for ext2_new_inode()
Date: Wed, 25 Jan 2006 07:40:59 +0100	[thread overview]
Message-ID: <20060125064059.GA3778@MAIL.13thfloor.at> (raw)


Hi Honza!

the quota check in ext2_new_inode() returns ENOSPC where
IMHO it should return EDQUOT instead. here is a trivial
patch to fix that ...

rationale: ext3, reiser, udf and ufs do similar checks
and already return EDQUOT

best,
Herbert

Signed-off-by: Herbert Pötzl <herbert@13thfloor.at>

--- ./fs/ext2/ialloc.c.orig	2006-01-03 17:29:56 +0100
+++ ./fs/ext2/ialloc.c	2006-01-25 07:26:42 +0100
@@ -605,7 +605,7 @@ got:
 	insert_inode_hash(inode);
 
 	if (DQUOT_ALLOC_INODE(inode)) {
-		err = -ENOSPC;
+		err = -EDQUOT;
 		goto fail_drop;
 	}
 


             reply	other threads:[~2006-01-25  6:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-25  6:40 Herbert Poetzl [this message]
2006-01-25 12:19 ` Jan Kara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060125064059.GA3778@MAIL.13thfloor.at \
    --to=herbert@13thfloor.at \
    --cc=akpm@osdl.org \
    --cc=jack@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®