diff options
author | Tejun Heo <tj@kernel.org> | 2010-02-02 00:39:01 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-02-16 21:17:38 -0500 |
commit | 003cb608a2533d0927a83bc4e07e46d7a622eda9 (patch) | |
tree | 19347ffcec1c09cda9c4fd01addd8797cf8e31c4 /fs/xfs | |
parent | 43cf38eb5cea91245502df3fcee4dbfc1c74dd1c (diff) |
percpu: add __percpu sparse annotations to fs
Add __percpu sparse annotations to fs.
These annotations are to make sparse consider percpu variables to be
in a different address space and warn if accessed without going
through percpu accessors. This patch doesn't affect normal builds.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Alex Elder <aelder@sgi.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_mount.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h index 1df7e4502967..24c88870cdb2 100644 --- a/fs/xfs/xfs_mount.h +++ b/fs/xfs/xfs_mount.h | |||
@@ -243,7 +243,7 @@ typedef struct xfs_mount { | |||
243 | struct xfs_qmops *m_qm_ops; /* vector of XQM ops */ | 243 | struct xfs_qmops *m_qm_ops; /* vector of XQM ops */ |
244 | atomic_t m_active_trans; /* number trans frozen */ | 244 | atomic_t m_active_trans; /* number trans frozen */ |
245 | #ifdef HAVE_PERCPU_SB | 245 | #ifdef HAVE_PERCPU_SB |
246 | xfs_icsb_cnts_t *m_sb_cnts; /* per-cpu superblock counters */ | 246 | xfs_icsb_cnts_t __percpu *m_sb_cnts; /* per-cpu superblock counters */ |
247 | unsigned long m_icsb_counters; /* disabled per-cpu counters */ | 247 | unsigned long m_icsb_counters; /* disabled per-cpu counters */ |
248 | struct notifier_block m_icsb_notifier; /* hotplug cpu notifier */ | 248 | struct notifier_block m_icsb_notifier; /* hotplug cpu notifier */ |
249 | struct mutex m_icsb_mutex; /* balancer sync lock */ | 249 | struct mutex m_icsb_mutex; /* balancer sync lock */ |