]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- (sparc32,ppc) don't use switch on 64-bit value, gcc uses __ucmpdi2() to do it
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 10 Jul 2004 19:38:42 +0000 (19:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    linux-2.6-gfs-noswitch64.patch -> 1.1

linux-2.6-gfs-noswitch64.patch [new file with mode: 0644]

diff --git a/linux-2.6-gfs-noswitch64.patch b/linux-2.6-gfs-noswitch64.patch
new file mode 100644 (file)
index 0000000..7b7d01a
--- /dev/null
@@ -0,0 +1,32 @@
+--- linux-2.6.7/fs/gfs/log.c.orig      2004-07-10 09:36:36.000000000 +0000
++++ linux-2.6.7/fs/gfs/log.c   2004-07-10 13:57:31.000000000 +0000
+@@ -526,24 +526,16 @@
+               dump_off = sdp->sd_log_dump_last;
+               dump_wrap = sdp->sd_log_dump_last_wrap;
+-              switch (head_wrap - dump_wrap) {
+-              case 0:
+-                      break;
+-
+-              case 1:
+-                      if (head_off < dump_off)
+-                              break;
+-                      else if (head_off == dump_off &&
+-                               (tr->tr_flags & TRF_LOG_DUMP))
+-                              break;
+-
+-              default:
++              if ((head_wrap - dump_wrap) != 0) {
++                      if(((head_wrap - dump_wrap) != 1) ||
++                              ((head_off >= dump_off) &&
++                               ((head_off != dump_off) || !(tr->tr_flags & TRF_LOG_DUMP)))) {
+                       GFS_ASSERT_SBD(FALSE, sdp,
+                                      printk("head_off = %"PRIu64", head_wrap = %"PRIu64"\n",
+                                             head_off, head_wrap);
+                                      printk("dump_off = %"PRIu64", dump_wrap = %"PRIu64"\n",
+                                             dump_off, dump_wrap););
+-                      break;
++                      }
+               }
+       }
+ }
This page took 0.059965 seconds and 4 git commands to generate.