diff options
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r-- | fs/xfs/xfs_mount.h | 21 |
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 | |||
21 | typedef struct xfs_trans_reservations { | 22 | typedef 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 | ||
571 | STATIC_INLINE void | ||
572 | xfs_icsb_lock(xfs_mount_t *mp) | ||
573 | { | ||
574 | mutex_lock(&mp->m_icsb_mutex); | ||
575 | } | ||
576 | |||
577 | STATIC_INLINE void | ||
578 | xfs_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 | */ |
569 | typedef struct xfs_mod_sb { | 590 | typedef struct xfs_mod_sb { |