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

CVS commit program cvs at parl.clemson.edu
Mon Jul 26 18:32:45 EDT 2004


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

Modified Files:
	pvfs2-utils.c 
Log Message:
- acache tweaks: make table and max num entries much larger
- clean up state machines that use private object references, as that
  was a major culprit of why the acache wasn't working (it assumed the
  object reference in the getattr union member was valid)
- remove copied handle array from the remove help state machine in
  favor of just using the value straight from the attributes
- add some explicit field invalidates of acache entries if from cache
- better error handling is isys_create
- make sure to clear acache_hit flag when state machines release it (to avoid
  an automatic/double free on cleanup)
- enable acache in pvfs2-client for 10 second timeout -- testing only,
  will not be in release
- misc cleanups


Index: pvfs2-utils.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/kernel/linux-2.6/pvfs2-utils.c,v
diff -p -u -r1.77 -r1.78
--- pvfs2-utils.c	19 Jul 2004 21:13:15 -0000	1.77
+++ pvfs2-utils.c	26 Jul 2004 21:32:44 -0000	1.78
@@ -83,7 +83,8 @@ static inline int copy_attributes_to_ino
 #if (PVFS2_LINUX_KERNEL_2_4_MINOR_VER > 21)
             inode->i_bytes = inode_size;
 #endif
-#else /* always ok for 2.6.x */
+#else
+            /* this is always ok for 2.6.x */
             inode->i_bytes = inode_size;
 #endif
             inode->i_blocks = (unsigned long)(rounded_up_size / 512);
@@ -108,7 +109,8 @@ static inline int copy_attributes_to_ino
 #if (PVFS2_LINUX_KERNEL_2_4_MINOR_VER > 21)
             inode->i_bytes = PAGE_CACHE_SIZE;
 #endif
-#else /* always ok for 2.6.x */
+#else
+            /* always ok for 2.6.x */
             inode->i_bytes = PAGE_CACHE_SIZE;
 #endif
             inode->i_blocks = (unsigned long)(PAGE_CACHE_SIZE / 512);



More information about the PVFS2-CVS mailing list