patch-2.3.47 linux/fs/lockd/svcsubs.c

Next file: linux/fs/lockd/xdr.c
Previous file: linux/fs/lockd/svcproc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/fs/lockd/svcsubs.c linux/fs/lockd/svcsubs.c
@@ -6,6 +6,7 @@
  * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
  */
 
+#include <linux/config.h>
 #include <linux/types.h>
 #include <linux/string.h>
 #include <linux/sched.h>
@@ -105,6 +106,11 @@
 
 out_free:
 	kfree(file);
+#ifdef CONFIG_LOCKD_V4
+	if (nfserr == 1)
+		nfserr = nlm4_stale_fh;
+	else
+#endif
 	nfserr = nlm_lck_denied;
 	goto out_unlock;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)