Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Erik Frederiksen <erik_frederiksen@pmc-sierra.com>
Cc: linux-mips@linux-mips.org
Subject: Re: errno value for EDQUOT on MIPS
Date: Wed, 28 Jun 2006 19:12:22 +0100	[thread overview]
Message-ID: <20060628181222.GA28516@linux-mips.org> (raw)
In-Reply-To: <1151512806.3901.1082.camel@girvin.pmc-sierra.bc.ca>

On Wed, Jun 28, 2006 at 10:40:07AM -0600, Erik Frederiksen wrote:

> from include/asm-mips/errno.h
> #define EDQUOT      1133    /* Quota exceeded */
> 
> Hi everyone.  I'm kind of confused as to why the value for EDQUOT is so
> large on MIPS.  It seems like no other architectures have errnos that go
> that high.

History; the errno values were inheritted from earlier MIPS operating
systems at a time when that seemed to be a good idea because Linux was
the new kid in town.

> The reason I'm interested is that functions that use ERR_PTR() to return
> error codes in pointers cannot return this error code without IS_ERR()
> thinking that the pointer is valid.  In my case, it caused an alignment
> exception in the XFS open call when quota has been exceeded.  This takes
> place in the linux-mips 2.6.14 kernel.  
> 
> I think that the XFS code has changed enough that this bug isn't in
> newer versions, though I'm not sure about that.  I've supplied a patch
> that addresses this situation by changing the threshold used by IS_ERR
> if EMAXERRNO is defined and greater than 1000.  Looking forward to your
> feedback.

The value 1000 has been choosen pretty arbitrarily I think.  Not sure if
a complicated solution is actually needed.

You may try raising that number to a higher value and posting the patch to
linux-kernel@vger.kernel.org to see if other have an issue with such a
change.

   Ralf

      reply	other threads:[~2006-06-28 18:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-28 16:40 errno value for EDQUOT on MIPS Erik Frederiksen
2006-06-28 18:12 ` Ralf Baechle [this message]

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=20060628181222.GA28516@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=erik_frederiksen@pmc-sierra.com \
    --cc=linux-mips@linux-mips.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