Whamcloud - gitweb
r=adilger
authornic <nic>
Thu, 14 Oct 2004 20:01:59 +0000 (20:01 +0000)
committernic <nic>
Thu, 14 Oct 2004 20:01:59 +0000 (20:01 +0000)
fixes to get b1_2 compiling with suse 2.6 kernel again

lnet/include/linux/portals_compat25.h
lustre/include/linux/lustre_debug.h
lustre/llite/namei.c
lustre/portals/include/linux/portals_compat25.h

index 7fe6dfc..3d0aff0 100644 (file)
@@ -28,6 +28,7 @@
   call_usermodehelper(path, argv, envp, 1)
 # define RECALC_SIGPENDING         recalc_sigpending()
 # define CURRENT_SECONDS           get_seconds()
+# define smp_num_cpus              NR_CPUS
 
 #elif defined(CONFIG_RH_2_4_20) /* RH 2.4.x */
 
index fc7349d..3a134b9 100644 (file)
@@ -45,7 +45,7 @@ do { if (offset > ASSERT_MAX_SIZE_MB << 20) {                           \
 #define LL_CDEBUG_PAGE(mask, page, fmt, arg...)                         \
         CDEBUG(mask, "page %p map %p index %lu flags %lx count %u priv %0lx: " \
                fmt, page, page->mapping, page->index, page->flags,      \
-               atomic_read(&page->count), page->private, ## arg)
+               page_count(page), page->private, ## arg)
 
 /* lib/debug.c */
 int dump_lniobuf(struct niobuf_local *lnb);
index 09e499c..3286393 100644 (file)
@@ -240,9 +240,9 @@ static void ll_d_add(struct dentry *de, struct inode *inode)
         /* d_rehash */
         if (!d_unhashed(de)) {
                 spin_unlock(&dcache_lock);
-                CERROR("dentry %.*s %p hash next %p, prev %p\n",
+                CERROR("dentry %.*s %p hash next %p\n",
                        de->d_name.len, de->d_name.name, de,
-                       de->d_hash.next, de->d_hash.prev);
+                       de->d_hash.next);
                 LBUG();
         }
         __d_rehash(de, 0);
index 7fe6dfc..3d0aff0 100644 (file)
@@ -28,6 +28,7 @@
   call_usermodehelper(path, argv, envp, 1)
 # define RECALC_SIGPENDING         recalc_sigpending()
 # define CURRENT_SECONDS           get_seconds()
+# define smp_num_cpus              NR_CPUS
 
 #elif defined(CONFIG_RH_2_4_20) /* RH 2.4.x */