aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-06-09 02:48:30 -0400
committerNathan Scott <nathans@sgi.com>2006-06-09 02:48:30 -0400
commitb83bd1388133e914c38bd31d69bc90143e6ab10c (patch)
tree3f7fecf3913d1aa8216e06f109746c63ec0ac501 /fs/xfs/xfs_mount.h
parent932f2c323196c214e645d5a572a1d7b562c0f93f (diff)
[XFS] Resolve a namespace collision on vfs/vfsops for FreeBSD porters.
SGI-PV: 9533338 SGI-Modid: xfs-linux-melb:xfs-kern:26106a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r--fs/xfs/xfs_mount.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h
index 2ca211214a9c..7e612255f530 100644
--- a/fs/xfs/xfs_mount.h
+++ b/fs/xfs/xfs_mount.h
@@ -53,7 +53,7 @@ typedef struct xfs_trans_reservations {
53#else 53#else
54struct cred; 54struct cred;
55struct log; 55struct log;
56struct vfs; 56struct bhv_vfs;
57struct vnode; 57struct vnode;
58struct xfs_mount_args; 58struct xfs_mount_args;
59struct xfs_ihash; 59struct xfs_ihash;
@@ -66,7 +66,7 @@ struct xfs_bmap_free;
66struct xfs_extdelta; 66struct xfs_extdelta;
67struct xfs_swapext; 67struct xfs_swapext;
68 68
69extern struct vfsops xfs_vfsops; 69extern struct bhv_vfsops xfs_vfsops;
70extern struct vnodeops xfs_vnodeops; 70extern struct vnodeops xfs_vnodeops;
71 71
72#define AIL_LOCK_T lock_t 72#define AIL_LOCK_T lock_t
@@ -84,11 +84,11 @@ typedef int (*xfs_send_data_t)(int, struct vnode *,
84 xfs_off_t, size_t, int, vrwlock_t *); 84 xfs_off_t, size_t, int, vrwlock_t *);
85typedef int (*xfs_send_mmap_t)(struct vm_area_struct *, uint); 85typedef int (*xfs_send_mmap_t)(struct vm_area_struct *, uint);
86typedef int (*xfs_send_destroy_t)(struct vnode *, dm_right_t); 86typedef int (*xfs_send_destroy_t)(struct vnode *, dm_right_t);
87typedef int (*xfs_send_namesp_t)(dm_eventtype_t, struct vfs *, 87typedef int (*xfs_send_namesp_t)(dm_eventtype_t, struct bhv_vfs *,
88 struct vnode *, 88 struct vnode *,
89 dm_right_t, struct vnode *, dm_right_t, 89 dm_right_t, struct vnode *, dm_right_t,
90 char *, char *, mode_t, int, int); 90 char *, char *, mode_t, int, int);
91typedef void (*xfs_send_unmount_t)(struct vfs *, struct vnode *, 91typedef void (*xfs_send_unmount_t)(struct bhv_vfs *, struct vnode *,
92 dm_right_t, mode_t, int, int); 92 dm_right_t, mode_t, int, int);
93 93
94typedef struct xfs_dmops { 94typedef struct xfs_dmops {
@@ -190,7 +190,7 @@ typedef struct xfs_qmops {
190 * Prototypes and functions for I/O core modularization. 190 * Prototypes and functions for I/O core modularization.
191 */ 191 */
192 192
193typedef int (*xfs_ioinit_t)(struct vfs *, 193typedef int (*xfs_ioinit_t)(struct bhv_vfs *,
194 struct xfs_mount_args *, int); 194 struct xfs_mount_args *, int);
195typedef int (*xfs_bmapi_t)(struct xfs_trans *, void *, 195typedef int (*xfs_bmapi_t)(struct xfs_trans *, void *,
196 xfs_fileoff_t, xfs_filblks_t, int, 196 xfs_fileoff_t, xfs_filblks_t, int,
@@ -220,7 +220,7 @@ typedef void (*xfs_lock_demote_t)(void *, uint);
220typedef int (*xfs_lock_nowait_t)(void *, uint); 220typedef int (*xfs_lock_nowait_t)(void *, uint);
221typedef void (*xfs_unlk_t)(void *, unsigned int); 221typedef void (*xfs_unlk_t)(void *, unsigned int);
222typedef xfs_fsize_t (*xfs_size_t)(void *); 222typedef xfs_fsize_t (*xfs_size_t)(void *);
223typedef xfs_fsize_t (*xfs_iodone_t)(struct vfs *); 223typedef xfs_fsize_t (*xfs_iodone_t)(struct bhv_vfs *);
224typedef int (*xfs_swap_extents_t)(void *, void *, 224typedef int (*xfs_swap_extents_t)(void *, void *,
225 struct xfs_swapext*); 225 struct xfs_swapext*);
226 226
@@ -511,7 +511,7 @@ xfs_preferred_iosize(xfs_mount_t *mp)
511 511
512#define XFS_FORCED_SHUTDOWN(mp) ((mp)->m_flags & XFS_MOUNT_FS_SHUTDOWN) 512#define XFS_FORCED_SHUTDOWN(mp) ((mp)->m_flags & XFS_MOUNT_FS_SHUTDOWN)
513#define xfs_force_shutdown(m,f) \ 513#define xfs_force_shutdown(m,f) \
514 VFS_FORCE_SHUTDOWN((XFS_MTOVFS(m)), f, __FILE__, __LINE__) 514 bhv_vfs_force_shutdown((XFS_MTOVFS(m)), f, __FILE__, __LINE__)
515 515
516/* 516/*
517 * Flags for xfs_mountfs 517 * Flags for xfs_mountfs
@@ -529,7 +529,7 @@ xfs_preferred_iosize(xfs_mount_t *mp)
529 * Macros for getting from mount to vfs and back. 529 * Macros for getting from mount to vfs and back.
530 */ 530 */
531#define XFS_MTOVFS(mp) xfs_mtovfs(mp) 531#define XFS_MTOVFS(mp) xfs_mtovfs(mp)
532static inline struct vfs *xfs_mtovfs(xfs_mount_t *mp) 532static inline struct bhv_vfs *xfs_mtovfs(xfs_mount_t *mp)
533{ 533{
534 return bhvtovfs(&mp->m_bhv); 534 return bhvtovfs(&mp->m_bhv);
535} 535}
@@ -541,7 +541,7 @@ static inline xfs_mount_t *xfs_bhvtom(bhv_desc_t *bdp)
541} 541}
542 542
543#define XFS_VFSTOM(vfs) xfs_vfstom(vfs) 543#define XFS_VFSTOM(vfs) xfs_vfstom(vfs)
544static inline xfs_mount_t *xfs_vfstom(vfs_t *vfs) 544static inline xfs_mount_t *xfs_vfstom(bhv_vfs_t *vfs)
545{ 545{
546 return XFS_BHVTOM(bhv_lookup(VFS_BHVHEAD(vfs), &xfs_vfsops)); 546 return XFS_BHVTOM(bhv_lookup(VFS_BHVHEAD(vfs), &xfs_vfsops));
547} 547}
@@ -579,7 +579,7 @@ typedef struct xfs_mod_sb {
579extern xfs_mount_t *xfs_mount_init(void); 579extern xfs_mount_t *xfs_mount_init(void);
580extern void xfs_mod_sb(xfs_trans_t *, __int64_t); 580extern void xfs_mod_sb(xfs_trans_t *, __int64_t);
581extern void xfs_mount_free(xfs_mount_t *mp, int remove_bhv); 581extern void xfs_mount_free(xfs_mount_t *mp, int remove_bhv);
582extern int xfs_mountfs(struct vfs *, xfs_mount_t *mp, int); 582extern int xfs_mountfs(struct bhv_vfs *, xfs_mount_t *mp, int);
583extern void xfs_mountfs_check_barriers(xfs_mount_t *mp); 583extern void xfs_mountfs_check_barriers(xfs_mount_t *mp);
584 584
585extern int xfs_unmountfs(xfs_mount_t *, struct cred *); 585extern int xfs_unmountfs(xfs_mount_t *, struct cred *);
@@ -597,7 +597,7 @@ extern void xfs_freesb(xfs_mount_t *);
597extern void xfs_do_force_shutdown(bhv_desc_t *, int, char *, int); 597extern void xfs_do_force_shutdown(bhv_desc_t *, int, char *, int);
598extern int xfs_syncsub(xfs_mount_t *, int, int, int *); 598extern int xfs_syncsub(xfs_mount_t *, int, int, int *);
599extern int xfs_sync_inodes(xfs_mount_t *, int, int, int *); 599extern int xfs_sync_inodes(xfs_mount_t *, int, int, int *);
600extern xfs_agnumber_t xfs_initialize_perag(struct vfs *, xfs_mount_t *, 600extern xfs_agnumber_t xfs_initialize_perag(struct bhv_vfs *, xfs_mount_t *,
601 xfs_agnumber_t); 601 xfs_agnumber_t);
602extern void xfs_xlatesb(void *, struct xfs_sb *, int, __int64_t); 602extern void xfs_xlatesb(void *, struct xfs_sb *, int, __int64_t);
603 603