[PVFS2-CVS] commit by neill in pvfs2/src/kernel/linux-2.6: file.c namei.c

CVS commit program cvs at parl.clemson.edu
Mon Oct 11 13:06:50 EDT 2004


Update of /projects/cvsroot/pvfs2/src/kernel/linux-2.6
In directory parlweb:/tmp/cvs-serv14903/src/kernel/linux-2.6

Modified Files:
	file.c namei.c 
Log Message:
- fixed type of readahead_size in upcall for mmap-ra-cache that caused
  the mmap-ra-cache to not work properly on PowerPC
- added some debugging to trove's iterate handles method that shows up
  on PowerPC at startup time (not yet sure why)
- do not look in the mmap-ra-cache for data on reads unless we're sure
  we're doing an mmap or execution that fits the bill for using the
  mmap-ra-cache (as opposed to always)
- removed kernel module pvfs2_link call, as it was never used
- misc cleanups


Index: file.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/kernel/linux-2.6/file.c,v
diff -p -u -r1.85 -r1.86
--- file.c	4 Oct 2004 19:23:17 -0000	1.85
+++ file.c	11 Oct 2004 16:06:50 -0000	1.86
@@ -80,7 +80,7 @@ ssize_t pvfs2_inode_read(
     size_t count,
     loff_t *offset,
     int copy_to_user,
-    int readahead_size)
+    loff_t readahead_size)
 {
     int ret = -1, error_exit = 0;
     size_t each_count = 0, amt_complete = 0;

Index: namei.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/kernel/linux-2.6/namei.c,v
diff -p -u -r1.58 -r1.59
--- namei.c	2 Sep 2004 15:00:38 -0000	1.58
+++ namei.c	11 Oct 2004 16:06:50 -0000	1.59
@@ -209,15 +209,6 @@ struct dentry *pvfs2_lookup(
     return NULL;
 }
 
-static int pvfs2_link(
-    struct dentry *old_dentry,
-    struct inode *dir,
-    struct dentry *dentry)
-{
-    pvfs2_print("pvfs2_link: called (returning -ENOSYS)\n");
-    return -ENOSYS;
-}
-
 /* return 0 on success; non-zero otherwise */
 static int pvfs2_unlink(
     struct inode *dir,
@@ -409,7 +400,6 @@ struct inode_operations pvfs2_dir_inode_
 #ifdef PVFS2_LINUX_KERNEL_2_4
     create : pvfs2_create,
     lookup : pvfs2_lookup,
-    link : pvfs2_link,
     unlink : pvfs2_unlink,
     symlink : pvfs2_symlink,
     mkdir : pvfs2_mkdir,
@@ -420,7 +410,6 @@ struct inode_operations pvfs2_dir_inode_
 #else
     .create = pvfs2_create,
     .lookup = pvfs2_lookup,
-    .link = pvfs2_link,
     .unlink = pvfs2_unlink,
     .symlink = pvfs2_symlink,
     .mkdir = pvfs2_mkdir,



More information about the PVFS2-CVS mailing list