aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2007-08-30 03:20:39 -0400
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-10-15 21:44:08 -0400
commit745f691912b700ac98607b525f3c892204c7f12f (patch)
tree4988bdf45dec4bc9bffd432fc3e521b73836172f /fs/xfs/xfs_mount.h
parent48c872a9f3ec4cdc37801aae9ef16c80026503ea (diff)
[XFS] call common xfs vfs-level helpers directly and remove vfs operations
Also remove the now dead behavior code. SGI-PV: 969608 SGI-Modid: xfs-linux-melb:xfs-kern:29505a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r--fs/xfs/xfs_mount.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h
index 68d712574b81..8fefad022ae6 100644
--- a/fs/xfs/xfs_mount.h
+++ b/fs/xfs/xfs_mount.h
@@ -64,8 +64,6 @@ struct xfs_extdelta;
64struct xfs_swapext; 64struct xfs_swapext;
65struct xfs_mru_cache; 65struct xfs_mru_cache;
66 66
67extern struct bhv_vfsops xfs_vfsops;
68
69#define AIL_LOCK_T lock_t 67#define AIL_LOCK_T lock_t
70#define AIL_LOCKINIT(x,y) spinlock_init(x,y) 68#define AIL_LOCKINIT(x,y) spinlock_init(x,y)
71#define AIL_LOCK_DESTROY(x) spinlock_destroy(x) 69#define AIL_LOCK_DESTROY(x) spinlock_destroy(x)
@@ -330,7 +328,7 @@ extern void xfs_icsb_sync_counters_flags(struct xfs_mount *, int);
330#endif 328#endif
331 329
332typedef struct xfs_mount { 330typedef struct xfs_mount {
333 bhv_desc_t m_bhv; /* vfs xfs behavior */ 331 struct bhv_vfs *m_vfsp;
334 xfs_tid_t m_tid; /* next unused tid for fs */ 332 xfs_tid_t m_tid; /* next unused tid for fs */
335 AIL_LOCK_T m_ail_lock; /* fs AIL mutex */ 333 AIL_LOCK_T m_ail_lock; /* fs AIL mutex */
336 xfs_ail_entry_t m_ail; /* fs active log item list */ 334 xfs_ail_entry_t m_ail; /* fs active log item list */
@@ -527,8 +525,10 @@ xfs_preferred_iosize(xfs_mount_t *mp)
527#define XFS_LAST_UNMOUNT_WAS_CLEAN(mp) \ 525#define XFS_LAST_UNMOUNT_WAS_CLEAN(mp) \
528 ((mp)->m_flags & XFS_MOUNT_WAS_CLEAN) 526 ((mp)->m_flags & XFS_MOUNT_WAS_CLEAN)
529#define XFS_FORCED_SHUTDOWN(mp) ((mp)->m_flags & XFS_MOUNT_FS_SHUTDOWN) 527#define XFS_FORCED_SHUTDOWN(mp) ((mp)->m_flags & XFS_MOUNT_FS_SHUTDOWN)
528void xfs_do_force_shutdown(struct xfs_mount *mp, int flags, char *fname,
529 int lnnum);
530#define xfs_force_shutdown(m,f) \ 530#define xfs_force_shutdown(m,f) \
531 bhv_vfs_force_shutdown((XFS_MTOVFS(m)), f, __FILE__, __LINE__) 531 xfs_do_force_shutdown(m, f, __FILE__, __LINE__)
532 532
533/* 533/*
534 * Flags for xfs_mountfs 534 * Flags for xfs_mountfs
@@ -548,20 +548,13 @@ xfs_preferred_iosize(xfs_mount_t *mp)
548#define XFS_MTOVFS(mp) xfs_mtovfs(mp) 548#define XFS_MTOVFS(mp) xfs_mtovfs(mp)
549static inline struct bhv_vfs *xfs_mtovfs(xfs_mount_t *mp) 549static inline struct bhv_vfs *xfs_mtovfs(xfs_mount_t *mp)
550{ 550{
551 return bhvtovfs(&mp->m_bhv); 551 return mp->m_vfsp;
552}
553
554#define XFS_BHVTOM(bdp) xfs_bhvtom(bdp)
555static inline xfs_mount_t *xfs_bhvtom(bhv_desc_t *bdp)
556{
557 return (xfs_mount_t *)BHV_PDATA(bdp);
558} 552}
559 553
560#define XFS_VFSTOM(vfs) xfs_vfstom(vfs) 554#define XFS_VFSTOM(vfs) xfs_vfstom(vfs)
561static inline xfs_mount_t *xfs_vfstom(bhv_vfs_t *vfs) 555static inline xfs_mount_t *xfs_vfstom(bhv_vfs_t *vfs)
562{ 556{
563 return XFS_BHVTOM(bhv_lookup_range(VFS_BHVHEAD(vfs), 557 return vfs->vfs_mount;
564 VFS_POSITION_XFS, VFS_POSITION_XFS));
565} 558}
566 559
567#define XFS_DADDR_TO_AGNO(mp,d) xfs_daddr_to_agno(mp,d) 560#define XFS_DADDR_TO_AGNO(mp,d) xfs_daddr_to_agno(mp,d)
@@ -633,7 +626,7 @@ typedef struct xfs_mod_sb {
633extern xfs_mount_t *xfs_mount_init(void); 626extern xfs_mount_t *xfs_mount_init(void);
634extern void xfs_mod_sb(xfs_trans_t *, __int64_t); 627extern void xfs_mod_sb(xfs_trans_t *, __int64_t);
635extern int xfs_log_sbcount(xfs_mount_t *, uint); 628extern int xfs_log_sbcount(xfs_mount_t *, uint);
636extern void xfs_mount_free(xfs_mount_t *mp, int remove_bhv); 629extern void xfs_mount_free(xfs_mount_t *mp);
637extern int xfs_mountfs(struct bhv_vfs *, xfs_mount_t *mp, int); 630extern int xfs_mountfs(struct bhv_vfs *, xfs_mount_t *mp, int);
638extern void xfs_mountfs_check_barriers(xfs_mount_t *mp); 631extern void xfs_mountfs_check_barriers(xfs_mount_t *mp);
639 632