diff options
author | Barry Naujok <bnaujok@sgi.com> | 2008-10-30 02:05:38 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 02:05:38 -0400 |
commit | 847fff5ca881670ca8ec617afeb943950f0c804b (patch) | |
tree | cd03cf7a3422842978332a22de51c91827821841 /fs/xfs/xfs_mount.h | |
parent | 24ee0e49c9cce23acb1758728cb09e8d2b53bd33 (diff) |
[XFS] Sync up kernel and user-space headers
SGI-PV: 986558
SGI-Modid: xfs-linux-melb:xfs-kern:32231a
Signed-off-by: Barry Naujok <bnaujok@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r-- | fs/xfs/xfs_mount.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h index 49d647e730e1..56c3b122e532 100644 --- a/fs/xfs/xfs_mount.h +++ b/fs/xfs/xfs_mount.h | |||
@@ -44,14 +44,14 @@ typedef struct xfs_trans_reservations { | |||
44 | } xfs_trans_reservations_t; | 44 | } xfs_trans_reservations_t; |
45 | 45 | ||
46 | #ifndef __KERNEL__ | 46 | #ifndef __KERNEL__ |
47 | /* | 47 | |
48 | * Moved here from xfs_ag.h to avoid reordering header files | ||
49 | */ | ||
50 | #define XFS_DADDR_TO_AGNO(mp,d) \ | 48 | #define XFS_DADDR_TO_AGNO(mp,d) \ |
51 | ((xfs_agnumber_t)(XFS_BB_TO_FSBT(mp, d) / (mp)->m_sb.sb_agblocks)) | 49 | ((xfs_agnumber_t)(XFS_BB_TO_FSBT(mp, d) / (mp)->m_sb.sb_agblocks)) |
52 | #define XFS_DADDR_TO_AGBNO(mp,d) \ | 50 | #define XFS_DADDR_TO_AGBNO(mp,d) \ |
53 | ((xfs_agblock_t)(XFS_BB_TO_FSBT(mp, d) % (mp)->m_sb.sb_agblocks)) | 51 | ((xfs_agblock_t)(XFS_BB_TO_FSBT(mp, d) % (mp)->m_sb.sb_agblocks)) |
54 | #else | 52 | |
53 | #else /* __KERNEL__ */ | ||
54 | |||
55 | struct cred; | 55 | struct cred; |
56 | struct log; | 56 | struct log; |
57 | struct xfs_mount_args; | 57 | struct xfs_mount_args; |
@@ -507,7 +507,6 @@ typedef struct xfs_mod_sb { | |||
507 | #define XFS_MOUNT_ILOCK(mp) mutex_lock(&((mp)->m_ilock)) | 507 | #define XFS_MOUNT_ILOCK(mp) mutex_lock(&((mp)->m_ilock)) |
508 | #define XFS_MOUNT_IUNLOCK(mp) mutex_unlock(&((mp)->m_ilock)) | 508 | #define XFS_MOUNT_IUNLOCK(mp) mutex_unlock(&((mp)->m_ilock)) |
509 | 509 | ||
510 | extern void xfs_mod_sb(xfs_trans_t *, __int64_t); | ||
511 | extern int xfs_log_sbcount(xfs_mount_t *, uint); | 510 | extern int xfs_log_sbcount(xfs_mount_t *, uint); |
512 | extern int xfs_mountfs(xfs_mount_t *mp); | 511 | extern int xfs_mountfs(xfs_mount_t *mp); |
513 | extern void xfs_mountfs_check_barriers(xfs_mount_t *mp); | 512 | extern void xfs_mountfs_check_barriers(xfs_mount_t *mp); |
@@ -526,9 +525,6 @@ extern void xfs_freesb(xfs_mount_t *); | |||
526 | extern int xfs_fs_writable(xfs_mount_t *); | 525 | extern int xfs_fs_writable(xfs_mount_t *); |
527 | extern int xfs_syncsub(xfs_mount_t *, int, int *); | 526 | extern int xfs_syncsub(xfs_mount_t *, int, int *); |
528 | extern int xfs_sync_inodes(xfs_mount_t *, int, int *); | 527 | extern int xfs_sync_inodes(xfs_mount_t *, int, int *); |
529 | extern xfs_agnumber_t xfs_initialize_perag(xfs_mount_t *, xfs_agnumber_t); | ||
530 | extern void xfs_sb_from_disk(struct xfs_sb *, struct xfs_dsb *); | ||
531 | extern void xfs_sb_to_disk(struct xfs_dsb *, struct xfs_sb *, __int64_t); | ||
532 | extern int xfs_sb_validate_fsb_count(struct xfs_sb *, __uint64_t); | 528 | extern int xfs_sb_validate_fsb_count(struct xfs_sb *, __uint64_t); |
533 | 529 | ||
534 | extern int xfs_dmops_get(struct xfs_mount *, struct xfs_mount_args *); | 530 | extern int xfs_dmops_get(struct xfs_mount *, struct xfs_mount_args *); |
@@ -540,4 +536,9 @@ extern struct xfs_dmops xfs_dmcore_xfs; | |||
540 | 536 | ||
541 | #endif /* __KERNEL__ */ | 537 | #endif /* __KERNEL__ */ |
542 | 538 | ||
539 | extern void xfs_mod_sb(struct xfs_trans *, __int64_t); | ||
540 | extern xfs_agnumber_t xfs_initialize_perag(struct xfs_mount *, xfs_agnumber_t); | ||
541 | extern void xfs_sb_from_disk(struct xfs_sb *, struct xfs_dsb *); | ||
542 | extern void xfs_sb_to_disk(struct xfs_dsb *, struct xfs_sb *, __int64_t); | ||
543 | |||
543 | #endif /* __XFS_MOUNT_H__ */ | 544 | #endif /* __XFS_MOUNT_H__ */ |