* [PATCH] nfsd: remove weird compile-time conditional for EDQUOT
@ 2022-10-17 20:49 Jeff Layton
2022-10-17 23:31 ` Jeff Layton
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Layton @ 2022-10-17 20:49 UTC (permalink / raw)
To: chuck.lever; +Cc: linux-nfs, David Howells
I don't see any other places in the kernel that test for this symbol
before trying to use it. Remove the #ifdef.
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
fs/nfsd/vfs.c | 2 --
1 file changed, 2 deletions(-)
This builds for me, but I'm on a "standard" arch (x86_64). I think we'll
just have to put this in linux-next and see if any exotic arches or
configurations barf on it.
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 27dd9ac992ee..bee6f4a32f3b 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -84,9 +84,7 @@ nfserrno (int errno)
{ nfserr_mlink, -EMLINK },
{ nfserr_nametoolong, -ENAMETOOLONG },
{ nfserr_notempty, -ENOTEMPTY },
-#ifdef EDQUOT
{ nfserr_dquot, -EDQUOT },
-#endif
{ nfserr_stale, -ESTALE },
{ nfserr_jukebox, -ETIMEDOUT },
{ nfserr_jukebox, -ERESTARTSYS },
--
2.37.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] nfsd: remove weird compile-time conditional for EDQUOT
2022-10-17 20:49 [PATCH] nfsd: remove weird compile-time conditional for EDQUOT Jeff Layton
@ 2022-10-17 23:31 ` Jeff Layton
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Layton @ 2022-10-17 23:31 UTC (permalink / raw)
To: chuck.lever; +Cc: linux-nfs, David Howells
On Mon, 2022-10-17 at 16:49 -0400, Jeff Layton wrote:
> I don't see any other places in the kernel that test for this symbol
> before trying to use it. Remove the #ifdef.
>
> Cc: David Howells <dhowells@redhat.com>
> Signed-off-by: Jeff Layton <jlayton@kernel.org>
> ---
> fs/nfsd/vfs.c | 2 --
> 1 file changed, 2 deletions(-)
>
> This builds for me, but I'm on a "standard" arch (x86_64). I think we'll
> just have to put this in linux-next and see if any exotic arches or
> configurations barf on it.
>
> diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
> index 27dd9ac992ee..bee6f4a32f3b 100644
> --- a/fs/nfsd/vfs.c
> +++ b/fs/nfsd/vfs.c
> @@ -84,9 +84,7 @@ nfserrno (int errno)
> { nfserr_mlink, -EMLINK },
> { nfserr_nametoolong, -ENAMETOOLONG },
> { nfserr_notempty, -ENOTEMPTY },
> -#ifdef EDQUOT
> { nfserr_dquot, -EDQUOT },
> -#endif
> { nfserr_stale, -ESTALE },
> { nfserr_jukebox, -ETIMEDOUT },
> { nfserr_jukebox, -ERESTARTSYS },
I did a bit more archaeology...
It looks like this #ifdef dates back to the original merge of nfsd into
the kernel in v2.1.32 (~Mar 10th 1997)!
I think we can safely dispense with it now that EDQUOT is a full-fledged
errno value and has been for ages.
--
Jeff Layton <jlayton@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-17 23:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-17 20:49 [PATCH] nfsd: remove weird compile-time conditional for EDQUOT Jeff Layton
2022-10-17 23:31 ` Jeff Layton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).