This is not my day. The previous pagebuf patch is not harmful, but isn't
what I meant to send...
here's the correct patch.
===========================================================================
linux/fs/xfs/linux/xfs_stats.h
===========================================================================
--- /usr/tmp/TmpDir.13414-0/linux/fs/xfs/linux/xfs_stats.h_1.9 2003-10-02
14:45:08.000000000 -0500
+++ linux/fs/xfs/linux/xfs_stats.h 2003-10-02 12:37:24.000000000 -0500
@@ -130,9 +130,11 @@
DECLARE_PER_CPU(struct xfsstats, xfsstats);
-# define XFS_STATS_INC(count) ( get_cpu_var(xfsstats).count++ )
-# define XFS_STATS_DEC(count) ( get_cpu_var(xfsstats).count-- )
-# define XFS_STATS_ADD(count, inc) ( get_cpu_var(xfsstats).count += (inc) )
+/* We don't disable preempt, not too worried about poking the
+ * wrong cpu's stat, we only care about aggregate anyway */
+#define XFS_STATS_INC(count) (__get_cpu_var(xfsstats).count++)
+#define XFS_STATS_DEC(count) (__get_cpu_var(xfsstats).count--)
+#define XFS_STATS_ADD(count, inc) (__get_cpu_var(xfsstats).count += (inc))
extern void xfs_init_procfs(void);
extern void xfs_cleanup_procfs(void);
===========================================================================
linux/fs/xfs/pagebuf/page_buf_internal.h
===========================================================================
--- /usr/tmp/TmpDir.13414-0/linux/fs/xfs/pagebuf/page_buf_internal.h_1.27
2003-10-02 14:45:08.000000000 -0500
+++ linux/fs/xfs/pagebuf/page_buf_internal.h 2003-10-02 14:42:58.000000000
-0500
@@ -123,7 +123,9 @@
DECLARE_PER_CPU(struct pbstats, pbstats);
-#define PB_STATS_INC(count) ( get_cpu_var(pbstats).count++ )
+/* We don't disable preempt, not too worried about poking the
+ * wrong cpu's stat, we only care about aggregate anyway */
+#define PB_STATS_INC(count) (__get_cpu_var(pbstats).count++)
#ifndef STATIC
# define STATIC static
|