REPOST patch 26/38: SERVER: new routine fh_dup2()

From: Kendrick M. Smith (kmsmith@umich.edu)
Date: Wed Aug 14 2002 - 15:49:08 EST


Define fh_dup2(), which copies a _verified_ filehandle, taking care
of refcounts accordingly. (This will be used by RESTOREFH/SAVEFH and
a few other places.)

--- old/include/linux/nfsd/nfsfh.h Thu Aug 1 16:16:29 2002
+++ new/include/linux/nfsd/nfsfh.h Sun Aug 11 22:56:12 2002
@@ -238,6 +238,14 @@ fh_copy(struct svc_fh *dst, struct svc_f
         return dst;
 }

+static __inline__ void
+fh_dup2(struct svc_fh *dst, struct svc_fh *src)
+{
+ fh_put(dst);
+ dget(src->fh_dentry);
+ *dst = *src;
+}
+
 static __inline__ struct svc_fh *
 fh_init(struct svc_fh *fhp, int maxsize)
 {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:37 EST