patch-2.1.132 linux/fs/coda/symlink.c

Next file: linux/fs/coda/sysctl.c
Previous file: linux/fs/coda/stats.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.131/linux/fs/coda/symlink.c linux/fs/coda/symlink.c
@@ -26,7 +26,8 @@
 #include <linux/coda_proc.h>
 
 static int coda_readlink(struct dentry *de, char *buffer, int length);
-static struct dentry *coda_follow_link(struct dentry *, struct dentry *, unsigned int);
+static struct dentry *coda_follow_link(struct dentry *, struct dentry *, 
+				       unsigned int);
 
 struct inode_operations coda_symlink_inode_operations = {
 	NULL,			/* no file-operations */
@@ -64,8 +65,8 @@
 	coda_vfs_stat.readlink++;
 
         /* the maximum length we receive is len */
-        if ( length > CFS_MAXPATHLEN ) 
-	        len = CFS_MAXPATHLEN;
+        if ( length > CODA_MAXPATHLEN ) 
+	        len = CODA_MAXPATHLEN;
 	else
 	        len = length;
 	CODA_ALLOC(buf, char *, len);
@@ -85,15 +86,14 @@
 	return error;
 }
 
-static struct dentry *coda_follow_link(struct dentry *de, 
-				       struct dentry *base,
+static struct dentry *coda_follow_link(struct dentry *de, struct dentry *base,
 				       unsigned int follow)
 {
 	struct inode *inode = de->d_inode;
 	int error;
 	struct coda_inode_info *cnp;
 	unsigned int len;
-	char mem[CFS_MAXPATHLEN];
+	char mem[CODA_MAXPATHLEN];
 	char *path;
 	ENTRY;
 	CDEBUG(D_INODE, "(%x/%ld)\n", inode->i_dev, inode->i_ino);
@@ -101,7 +101,7 @@
         cnp = ITOC(inode);
 	coda_vfs_stat.follow_link++;
 
-	len = CFS_MAXPATHLEN;
+	len = CODA_MAXPATHLEN;
 	error = venus_readlink(inode->i_sb, &(cnp->c_fid), mem, &len);
 
 	if (error) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov