diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-08-30 03:21:30 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 22:17:27 -0400 |
commit | b267ce9952374c51099f21d6c3a59c78fa0d7586 (patch) | |
tree | bb91ddce70fb9868217cb4f622e2c471ed4946b7 /fs/xfs/linux-2.6/xfs_vfs.h | |
parent | 743944967021f3759d3540b0dfbc7ee7215bc4b0 (diff) |
[XFS] kill struct bhv_vfs
Now that struct bhv_vfs doesn't have any members left we can kill it and
go directly from the super_block to the xfs_mount everywhere.
SGI-PV: 969608
SGI-Modid: xfs-linux-melb:xfs-kern:29509a
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/linux-2.6/xfs_vfs.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vfs.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vfs.h b/fs/xfs/linux-2.6/xfs_vfs.h index 51906192e70a..4da03a4e3520 100644 --- a/fs/xfs/linux-2.6/xfs_vfs.h +++ b/fs/xfs/linux-2.6/xfs_vfs.h | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/vfs.h> | 21 | #include <linux/vfs.h> |
22 | #include "xfs_fs.h" | 22 | #include "xfs_fs.h" |
23 | 23 | ||
24 | struct bhv_vfs; | ||
25 | struct inode; | 24 | struct inode; |
26 | 25 | ||
27 | struct fid; | 26 | struct fid; |
@@ -41,11 +40,6 @@ typedef struct bhv_vfs_sync_work { | |||
41 | void (*w_syncer)(struct xfs_mount *, void *); | 40 | void (*w_syncer)(struct xfs_mount *, void *); |
42 | } bhv_vfs_sync_work_t; | 41 | } bhv_vfs_sync_work_t; |
43 | 42 | ||
44 | typedef struct bhv_vfs { | ||
45 | struct xfs_mount *vfs_mount; | ||
46 | struct super_block *vfs_super; /* generic superblock pointer */ | ||
47 | } bhv_vfs_t; | ||
48 | |||
49 | #define SYNC_ATTR 0x0001 /* sync attributes */ | 43 | #define SYNC_ATTR 0x0001 /* sync attributes */ |
50 | #define SYNC_CLOSE 0x0002 /* close file system down */ | 44 | #define SYNC_CLOSE 0x0002 /* close file system down */ |
51 | #define SYNC_DELWRI 0x0004 /* look at delayed writes */ | 45 | #define SYNC_DELWRI 0x0004 /* look at delayed writes */ |
@@ -78,11 +72,7 @@ typedef struct bhv_vfs { | |||
78 | #define SHUTDOWN_REMOTE_REQ 0x0010 /* shutdown came from remote cell */ | 72 | #define SHUTDOWN_REMOTE_REQ 0x0010 /* shutdown came from remote cell */ |
79 | #define SHUTDOWN_DEVICE_REQ 0x0020 /* failed all paths to the device */ | 73 | #define SHUTDOWN_DEVICE_REQ 0x0020 /* failed all paths to the device */ |
80 | 74 | ||
81 | #define vfs_test_for_freeze(vfs) ((vfs)->vfs_super->s_frozen) | 75 | #define xfs_test_for_freeze(mp) ((mp)->m_super->s_frozen) |
82 | #define vfs_wait_for_freeze(vfs,l) vfs_check_frozen((vfs)->vfs_super, (l)) | 76 | #define xfs_wait_for_freeze(mp,l) vfs_check_frozen((mp)->m_super, (l)) |
83 | |||
84 | extern bhv_vfs_t *vfs_allocate(struct super_block *); | ||
85 | extern bhv_vfs_t *vfs_from_sb(struct super_block *); | ||
86 | extern void vfs_deallocate(bhv_vfs_t *); | ||
87 | 77 | ||
88 | #endif /* __XFS_VFS_H__ */ | 78 | #endif /* __XFS_VFS_H__ */ |