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

CVS commit program cvs at parl.clemson.edu
Fri Jul 16 14:25:01 EDT 2004


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

Modified Files:
	super.c 
Log Message:
- apply a mount time fix for 2.4.x support (murali)


Index: super.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/kernel/linux-2.6/super.c,v
diff -p -u -r1.50 -r1.51
--- super.c	14 Jul 2004 22:53:14 -0000	1.50
+++ super.c	16 Jul 2004 17:25:01 -0000	1.51
@@ -619,7 +619,7 @@ struct super_block* pvfs2_get_sb(
   error_exit:
     pvfs2_error("pvfs2_get_sb: mount request failed with %d\n", ret);
 
-    if (sb && !IS_ERR(sb))
+    if (sb)
     {
         if (sb->u.generic_sbp != NULL)
         {
@@ -628,9 +628,9 @@ struct super_block* pvfs2_get_sb(
     }
 
     translate_error_if_wait_failed(ret, 0, 0);
-    if (ret || IS_ERR(sb))
+    if (ret)
     {
-        sb = ERR_PTR(sb);
+        sb = NULL;
     }
 
     if (new_op)



More information about the PVFS2-CVS mailing list