aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.h
diff options
context:
space:
mode:
authorDavid Chinner <dgc@sgi.com>2007-02-10 02:35:15 -0500
committerTim Shimmin <tes@sgi.com>2007-02-10 02:35:15 -0500
commit03135cf72621fccab57728f0ba3ab5a551df1cc1 (patch)
tree1ba21174dd2c0215e98c39d3ae09e09de06f0010 /fs/xfs/xfs_mount.h
parent20b642858b6bb413976ff13ae6a35cc596967bab (diff)
[XFS] Fix UP build breakage due to undefined m_icsb_mutex.
SGI-PV: 952227 SGI-Modid: xfs-linux-melb:xfs-kern:27692a Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r--fs/xfs/xfs_mount.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h
index a2295df61d2e..416c89fbe8b5 100644
--- a/fs/xfs/xfs_mount.h
+++ b/fs/xfs/xfs_mount.h
@@ -18,6 +18,7 @@
18#ifndef __XFS_MOUNT_H__ 18#ifndef __XFS_MOUNT_H__
19#define __XFS_MOUNT_H__ 19#define __XFS_MOUNT_H__
20 20
21
21typedef struct xfs_trans_reservations { 22typedef struct xfs_trans_reservations {
22 uint tr_write; /* extent alloc trans */ 23 uint tr_write; /* extent alloc trans */
23 uint tr_itruncate; /* truncate trans */ 24 uint tr_itruncate; /* truncate trans */
@@ -564,6 +565,26 @@ xfs_daddr_to_agbno(struct xfs_mount *mp, xfs_daddr_t d)
564} 565}
565 566
566/* 567/*
568 * Per-cpu superblock locking functions
569 */
570#ifdef HAVE_PERCPU_SB
571STATIC_INLINE void
572xfs_icsb_lock(xfs_mount_t *mp)
573{
574 mutex_lock(&mp->m_icsb_mutex);
575}
576
577STATIC_INLINE void
578xfs_icsb_unlock(xfs_mount_t *mp)
579{
580 mutex_unlock(&mp->m_icsb_mutex);
581}
582#else
583#define xfs_icsb_lock(mp)
584#define xfs_icsb_unlock(mp)
585#endif
586
587/*
567 * This structure is for use by the xfs_mod_incore_sb_batch() routine. 588 * This structure is for use by the xfs_mod_incore_sb_batch() routine.
568 */ 589 */
569typedef struct xfs_mod_sb { 590typedef struct xfs_mod_sb {