aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r--fs/xfs/xfs_mount.h17
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
55struct cred; 55struct cred;
56struct log; 56struct log;
57struct xfs_mount_args; 57struct 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
510extern void xfs_mod_sb(xfs_trans_t *, __int64_t);
511extern int xfs_log_sbcount(xfs_mount_t *, uint); 510extern int xfs_log_sbcount(xfs_mount_t *, uint);
512extern int xfs_mountfs(xfs_mount_t *mp); 511extern int xfs_mountfs(xfs_mount_t *mp);
513extern void xfs_mountfs_check_barriers(xfs_mount_t *mp); 512extern void xfs_mountfs_check_barriers(xfs_mount_t *mp);
@@ -526,9 +525,6 @@ extern void xfs_freesb(xfs_mount_t *);
526extern int xfs_fs_writable(xfs_mount_t *); 525extern int xfs_fs_writable(xfs_mount_t *);
527extern int xfs_syncsub(xfs_mount_t *, int, int *); 526extern int xfs_syncsub(xfs_mount_t *, int, int *);
528extern int xfs_sync_inodes(xfs_mount_t *, int, int *); 527extern int xfs_sync_inodes(xfs_mount_t *, int, int *);
529extern xfs_agnumber_t xfs_initialize_perag(xfs_mount_t *, xfs_agnumber_t);
530extern void xfs_sb_from_disk(struct xfs_sb *, struct xfs_dsb *);
531extern void xfs_sb_to_disk(struct xfs_dsb *, struct xfs_sb *, __int64_t);
532extern int xfs_sb_validate_fsb_count(struct xfs_sb *, __uint64_t); 528extern int xfs_sb_validate_fsb_count(struct xfs_sb *, __uint64_t);
533 529
534extern int xfs_dmops_get(struct xfs_mount *, struct xfs_mount_args *); 530extern 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
539extern void xfs_mod_sb(struct xfs_trans *, __int64_t);
540extern xfs_agnumber_t xfs_initialize_perag(struct xfs_mount *, xfs_agnumber_t);
541extern void xfs_sb_from_disk(struct xfs_sb *, struct xfs_dsb *);
542extern void xfs_sb_to_disk(struct xfs_dsb *, struct xfs_sb *, __int64_t);
543
543#endif /* __XFS_MOUNT_H__ */ 544#endif /* __XFS_MOUNT_H__ */