patch-2.2.14 linux/fs/nfs/mount_clnt.c
Next file: linux/fs/nfsd/nfsctl.c
Previous file: linux/fs/nfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Tue Jan 4 10:12:23 2000
- Orig file:
v2.2.13/linux/fs/nfs/mount_clnt.c
- Orig date:
Wed Aug 26 10:10:33 1998
diff -u --recursive --new-file v2.2.13/linux/fs/nfs/mount_clnt.c linux/fs/nfs/mount_clnt.c
@@ -23,6 +23,11 @@
# define NFSDBG_FACILITY NFSDBG_ROOT
#endif
+#ifndef MAX
+# define MAX(a, b) (((a) > (b))? (a) : (b))
+#endif
+
+
/*
#define MOUNT_PROGRAM 100005
#define MOUNT_VERSION 1
@@ -119,7 +124,7 @@
{ "mnt_mount",
(kxdrproc_t) xdr_encode_dirpath,
(kxdrproc_t) xdr_decode_fhstatus,
- MNT_dirpath_sz, MNT_fhstatus_sz },
+ MAX(MNT_dirpath_sz, MNT_fhstatus_sz)<<2, 0},
};
static struct rpc_version mnt_version1 = {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)