Thread (2 messages) 2 messages, 1 author, 2022-10-17
STALE1337d

[PATCH] nfsd: remove weird compile-time conditional for EDQUOT

From: Jeff Layton <jlayton@kernel.org>
Date: 2022-10-17 20:50:02
Subsystem: filesystems (vfs and infrastructure), kernel nfsd, sunrpc, and lockd servers, the rest · Maintainers: Alexander Viro, Christian Brauner, Chuck Lever, Jeff Layton, Linus Torvalds

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help