xfs: replace E2BIG with EFBIG where appropriate
authorEric Sandeen <sandeen@sandeen.net>
Fri, 30 Apr 2010 03:42:49 +0000 (03:42 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 28 May 2010 19:58:16 +0000 (14:58 -0500)
commit657a4cffde065beca7d919e867f61e7d322708b6
treec3841761a48175aaab67c4e7293ae4d86b44b393
parentccf7c23fc129e75ef60e6f59f60a485b7a056598
xfs: replace E2BIG with EFBIG where appropriate

Many places in the xfs code return E2BIG when they really mean
EFBIG; trying to grow past 16T on a 32 bit machine, for example,
says "Argument list too long" rather than "File too large" which is
not particularly helpful.

Some of these don't make perfect sense as EFBIG either, but still
better than E2BIG IMHO.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_mount.c
fs/xfs/xfs_rtalloc.c