]> err.no Git - linux-2.6/blobdiff - fs/xfs/linux-2.6/xfs_vfs.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6] / fs / xfs / linux-2.6 / xfs_vfs.h
index 5c4996356226d9bf1731fd097d8503e60edabe0c..4da03a4e3520d97866d710f9977e95c0b2ae1961 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/vfs.h>
 #include "xfs_fs.h"
 
-struct bhv_vfs;
 struct inode;
 
 struct fid;
@@ -36,22 +35,11 @@ typedef struct kstatfs      bhv_statvfs_t;
 
 typedef struct bhv_vfs_sync_work {
        struct list_head        w_list;
-       struct bhv_vfs          *w_vfs;
+       struct xfs_mount        *w_mount;
        void                    *w_data;        /* syncer routine argument */
-       void                    (*w_syncer)(struct bhv_vfs *, void *);
+       void                    (*w_syncer)(struct xfs_mount *, void *);
 } bhv_vfs_sync_work_t;
 
-typedef struct bhv_vfs {
-       struct xfs_mount        *vfs_mount;
-       struct super_block      *vfs_super;     /* generic superblock pointer */
-       struct task_struct      *vfs_sync_task; /* generalised sync thread */
-       bhv_vfs_sync_work_t     vfs_sync_work;  /* work item for VFS_SYNC */
-       struct list_head        vfs_sync_list;  /* sync thread work item list */
-       spinlock_t              vfs_sync_lock;  /* work item list lock */
-       int                     vfs_sync_seq;   /* sync thread generation no. */
-       wait_queue_head_t       vfs_wait_single_sync_task;
-} bhv_vfs_t;
-
 #define SYNC_ATTR              0x0001  /* sync attributes */
 #define SYNC_CLOSE             0x0002  /* close file system down */
 #define SYNC_DELWRI            0x0004  /* look at delayed writes */
@@ -84,11 +72,7 @@ typedef struct bhv_vfs {
 #define SHUTDOWN_REMOTE_REQ    0x0010  /* shutdown came from remote cell */
 #define SHUTDOWN_DEVICE_REQ    0x0020  /* failed all paths to the device */
 
-#define vfs_test_for_freeze(vfs)       ((vfs)->vfs_super->s_frozen)
-#define vfs_wait_for_freeze(vfs,l)     vfs_check_frozen((vfs)->vfs_super, (l))
-extern bhv_vfs_t *vfs_allocate(struct super_block *);
-extern bhv_vfs_t *vfs_from_sb(struct super_block *);
-extern void vfs_deallocate(bhv_vfs_t *);
+#define xfs_test_for_freeze(mp)                ((mp)->m_super->s_frozen)
+#define xfs_wait_for_freeze(mp,l)      vfs_check_frozen((mp)->m_super, (l))
 
 #endif /* __XFS_VFS_H__ */