|
|
| version 1.228, 2006/12/04 02:51:48 | version 1.229, 2006/12/11 14:47:25 |
|---|---|
| Line 18 | Line 18 |
| #ifndef __XFS_MOUNT_H__ | #ifndef __XFS_MOUNT_H__ |
| #define __XFS_MOUNT_H__ | #define __XFS_MOUNT_H__ |
| typedef struct xfs_trans_reservations { | typedef struct xfs_trans_reservations { |
| uint tr_write; /* extent alloc trans */ | uint tr_write; /* extent alloc trans */ |
| uint tr_itruncate; /* truncate trans */ | uint tr_itruncate; /* truncate trans */ |
| Line 564 xfs_daddr_to_agbno(struct xfs_mount *mp, | Line 565 xfs_daddr_to_agbno(struct xfs_mount *mp, |
| } | } |
| /* | /* |
| * Per-cpu superblock locking functions | |
| */ | |
| #ifdef HAVE_PERCPU_SB | |
| STATIC_INLINE void | |
| xfs_icsb_lock(xfs_mount_t *mp) | |
| { | |
| mutex_lock(&mp->m_icsb_mutex); | |
| } | |
| STATIC_INLINE void | |
| xfs_icsb_unlock(xfs_mount_t *mp) | |
| { | |
| mutex_unlock(&mp->m_icsb_mutex); | |
| } | |
| #else | |
| #define xfs_icsb_lock(mp) | |
| #define xfs_icsb_unlock(mp) | |
| #endif | |
| /* | |
| * This structure is for use by the xfs_mod_incore_sb_batch() routine. | * This structure is for use by the xfs_mod_incore_sb_batch() routine. |
| */ | */ |
| typedef struct xfs_mod_sb { | typedef struct xfs_mod_sb { |