diff options
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r-- | fs/xfs/xfs_mount.h | 22 |
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 |
54 | struct cred; | 54 | struct cred; |
55 | struct log; | 55 | struct log; |
56 | struct vfs; | 56 | struct bhv_vfs; |
57 | struct vnode; | 57 | struct vnode; |
58 | struct xfs_mount_args; | 58 | struct xfs_mount_args; |
59 | struct xfs_ihash; | 59 | struct xfs_ihash; |
@@ -66,7 +66,7 @@ struct xfs_bmap_free; | |||
66 | struct xfs_extdelta; | 66 | struct xfs_extdelta; |
67 | struct xfs_swapext; | 67 | struct xfs_swapext; |
68 | 68 | ||
69 | extern struct vfsops xfs_vfsops; | 69 | extern struct bhv_vfsops xfs_vfsops; |
70 | extern struct vnodeops xfs_vnodeops; | 70 | extern 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 *); |
85 | typedef int (*xfs_send_mmap_t)(struct vm_area_struct *, uint); | 85 | typedef int (*xfs_send_mmap_t)(struct vm_area_struct *, uint); |
86 | typedef int (*xfs_send_destroy_t)(struct vnode *, dm_right_t); | 86 | typedef int (*xfs_send_destroy_t)(struct vnode *, dm_right_t); |
87 | typedef int (*xfs_send_namesp_t)(dm_eventtype_t, struct vfs *, | 87 | typedef 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); |
91 | typedef void (*xfs_send_unmount_t)(struct vfs *, struct vnode *, | 91 | typedef 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 | ||
94 | typedef struct xfs_dmops { | 94 | typedef 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 | ||
193 | typedef int (*xfs_ioinit_t)(struct vfs *, | 193 | typedef int (*xfs_ioinit_t)(struct bhv_vfs *, |
194 | struct xfs_mount_args *, int); | 194 | struct xfs_mount_args *, int); |
195 | typedef int (*xfs_bmapi_t)(struct xfs_trans *, void *, | 195 | typedef 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); | |||
220 | typedef int (*xfs_lock_nowait_t)(void *, uint); | 220 | typedef int (*xfs_lock_nowait_t)(void *, uint); |
221 | typedef void (*xfs_unlk_t)(void *, unsigned int); | 221 | typedef void (*xfs_unlk_t)(void *, unsigned int); |
222 | typedef xfs_fsize_t (*xfs_size_t)(void *); | 222 | typedef xfs_fsize_t (*xfs_size_t)(void *); |
223 | typedef xfs_fsize_t (*xfs_iodone_t)(struct vfs *); | 223 | typedef xfs_fsize_t (*xfs_iodone_t)(struct bhv_vfs *); |
224 | typedef int (*xfs_swap_extents_t)(void *, void *, | 224 | typedef 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) |
532 | static inline struct vfs *xfs_mtovfs(xfs_mount_t *mp) | 532 | static 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) |
544 | static inline xfs_mount_t *xfs_vfstom(vfs_t *vfs) | 544 | static 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 { | |||
579 | extern xfs_mount_t *xfs_mount_init(void); | 579 | extern xfs_mount_t *xfs_mount_init(void); |
580 | extern void xfs_mod_sb(xfs_trans_t *, __int64_t); | 580 | extern void xfs_mod_sb(xfs_trans_t *, __int64_t); |
581 | extern void xfs_mount_free(xfs_mount_t *mp, int remove_bhv); | 581 | extern void xfs_mount_free(xfs_mount_t *mp, int remove_bhv); |
582 | extern int xfs_mountfs(struct vfs *, xfs_mount_t *mp, int); | 582 | extern int xfs_mountfs(struct bhv_vfs *, xfs_mount_t *mp, int); |
583 | extern void xfs_mountfs_check_barriers(xfs_mount_t *mp); | 583 | extern void xfs_mountfs_check_barriers(xfs_mount_t *mp); |
584 | 584 | ||
585 | extern int xfs_unmountfs(xfs_mount_t *, struct cred *); | 585 | extern int xfs_unmountfs(xfs_mount_t *, struct cred *); |
@@ -597,7 +597,7 @@ extern void xfs_freesb(xfs_mount_t *); | |||
597 | extern void xfs_do_force_shutdown(bhv_desc_t *, int, char *, int); | 597 | extern void xfs_do_force_shutdown(bhv_desc_t *, int, char *, int); |
598 | extern int xfs_syncsub(xfs_mount_t *, int, int, int *); | 598 | extern int xfs_syncsub(xfs_mount_t *, int, int, int *); |
599 | extern int xfs_sync_inodes(xfs_mount_t *, int, int, int *); | 599 | extern int xfs_sync_inodes(xfs_mount_t *, int, int, int *); |
600 | extern xfs_agnumber_t xfs_initialize_perag(struct vfs *, xfs_mount_t *, | 600 | extern xfs_agnumber_t xfs_initialize_perag(struct bhv_vfs *, xfs_mount_t *, |
601 | xfs_agnumber_t); | 601 | xfs_agnumber_t); |
602 | extern void xfs_xlatesb(void *, struct xfs_sb *, int, __int64_t); | 602 | extern void xfs_xlatesb(void *, struct xfs_sb *, int, __int64_t); |
603 | 603 | ||