patch-2.4.10 linux/fs/coda/upcall.c

Next file: linux/fs/cramfs/inode.c
Previous file: linux/fs/coda/psdev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/fs/coda/upcall.c linux/fs/coda/upcall.c
@@ -71,7 +71,7 @@
 
 #define INSIZE(tag) sizeof(struct coda_ ## tag ## _in)
 #define OUTSIZE(tag) sizeof(struct coda_ ## tag ## _out)
-#define SIZE(tag)  max(unsigned int, INSIZE(tag), OUTSIZE(tag))
+#define SIZE(tag)  max_t(unsigned int, INSIZE(tag), OUTSIZE(tag))
 
 
 /* the upcalls */
@@ -151,7 +151,7 @@
 	int offset;
 
 	offset = INSIZE(lookup);
-        insize = max(unsigned int, offset + length +1, OUTSIZE(lookup));
+        insize = max_t(unsigned int, offset + length +1, OUTSIZE(lookup));
 	UPARG(CODA_LOOKUP);
 
         inp->coda_lookup.VFid = *fid;
@@ -267,7 +267,7 @@
         int offset;
 
 	offset = INSIZE(mkdir);
-	insize = max(unsigned int, offset + length + 1, OUTSIZE(mkdir));
+	insize = max_t(unsigned int, offset + length + 1, OUTSIZE(mkdir));
 	UPARG(CODA_MKDIR);
 
         inp->coda_mkdir.VFid = *dirfid;
@@ -298,7 +298,7 @@
 	int offset, s;
 	
 	offset = INSIZE(rename);
-	insize = max(unsigned int, offset + new_length + old_length + 8,
+	insize = max_t(unsigned int, offset + new_length + old_length + 8,
 		     OUTSIZE(rename)); 
  	UPARG(CODA_RENAME);
 
@@ -336,7 +336,7 @@
         int offset;
 
         offset = INSIZE(create);
-	insize = max(unsigned int, offset + length + 1, OUTSIZE(create));
+	insize = max_t(unsigned int, offset + length + 1, OUTSIZE(create));
 	UPARG(CODA_CREATE);
 
         inp->coda_create.VFid = *dirfid;
@@ -368,7 +368,7 @@
         int offset;
 
         offset = INSIZE(rmdir);
-	insize = max(unsigned int, offset + length + 1, OUTSIZE(rmdir));
+	insize = max_t(unsigned int, offset + length + 1, OUTSIZE(rmdir));
 	UPARG(CODA_RMDIR);
 
         inp->coda_rmdir.VFid = *dirfid;
@@ -390,7 +390,7 @@
         int error=0, insize, outsize, offset;
 
         offset = INSIZE(remove);
-	insize = max(unsigned int, offset + length + 1, OUTSIZE(remove));
+	insize = max_t(unsigned int, offset + length + 1, OUTSIZE(remove));
 	UPARG(CODA_REMOVE);
 
         inp->coda_remove.VFid = *dirfid;
@@ -413,7 +413,7 @@
         int retlen;
         char *result;
         
-	insize = max(unsigned int,
+	insize = max_t(unsigned int,
 		     INSIZE(readlink), OUTSIZE(readlink)+ *length + 1);
 	UPARG(CODA_READLINK);
 
@@ -448,7 +448,7 @@
         int offset;
 
 	offset = INSIZE(link);
-	insize = max(unsigned int, offset  + len + 1, OUTSIZE(link));
+	insize = max_t(unsigned int, offset  + len + 1, OUTSIZE(link));
         UPARG(CODA_LINK);
 
         inp->coda_link.sourceFid = *fid;
@@ -477,7 +477,7 @@
         int offset, s;
 
         offset = INSIZE(symlink);
-	insize = max(unsigned int, offset + len + symlen + 8, OUTSIZE(symlink));
+	insize = max_t(unsigned int, offset + len + symlen + 8, OUTSIZE(symlink));
 	UPARG(CODA_SYMLINK);
         
         /*        inp->coda_symlink.attr = *tva; XXXXXX */ 
@@ -617,7 +617,7 @@
         union outputArgs *outp;
         int insize, outsize, error;
         
-	insize = max(unsigned int, INSIZE(statfs), OUTSIZE(statfs));
+	insize = max_t(unsigned int, INSIZE(statfs), OUTSIZE(statfs));
 	UPARG(CODA_STATFS);
 
         error = coda_upcall(coda_sbp(sb), insize, &outsize, inp);

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