diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-08-30 03:20:53 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 21:45:02 -0400 |
commit | 0ce4cfd4f7dde5891d5b3e3c1a28ff7a7b4d36b3 (patch) | |
tree | 7ccb7197135e6705adcf51a40b1dea0a102ef213 /fs/xfs/linux-2.6 | |
parent | 745f691912b700ac98607b525f3c892204c7f12f (diff) |
[XFS] kill the vfs_fsid and vfs_altfsid members in struct bhv_vfs
vfs_altfsid was just a pointer to mp->m_fixedfsid so we can trivially
replace it with the latter. vfs_fsid also was identical to m_fixedfsid
through rather obfuscated ways so we can kill it as well and simply its
only user.
SGI-PV: 969608
SGI-Modid: xfs-linux-melb:xfs-kern:29506a
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')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl.c | 4 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vfs.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c index 4c38e27ed184..c9b0c9e68139 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl.c +++ b/fs/xfs/linux-2.6/xfs_ioctl.c | |||
@@ -138,7 +138,7 @@ xfs_find_handle( | |||
138 | vp = vn_from_inode(inode); | 138 | vp = vn_from_inode(inode); |
139 | 139 | ||
140 | /* now we can grab the fsid */ | 140 | /* now we can grab the fsid */ |
141 | memcpy(&handle.ha_fsid, XFS_MTOVFS(XFS_I(inode)->i_mount)->vfs_altfsid, | 141 | memcpy(&handle.ha_fsid, XFS_I(inode)->i_mount->m_fixedfsid, |
142 | sizeof(xfs_fsid_t)); | 142 | sizeof(xfs_fsid_t)); |
143 | hsize = sizeof(xfs_fsid_t); | 143 | hsize = sizeof(xfs_fsid_t); |
144 | 144 | ||
@@ -966,7 +966,7 @@ xfs_ioctl( | |||
966 | if (!capable(CAP_SYS_ADMIN)) | 966 | if (!capable(CAP_SYS_ADMIN)) |
967 | return -EPERM; | 967 | return -EPERM; |
968 | 968 | ||
969 | error = xfs_errortag_clearall(mp); | 969 | error = xfs_errortag_clearall(mp, 1); |
970 | return -error; | 970 | return -error; |
971 | 971 | ||
972 | default: | 972 | default: |
diff --git a/fs/xfs/linux-2.6/xfs_vfs.h b/fs/xfs/linux-2.6/xfs_vfs.h index 04303cb911c7..943f581bdb47 100644 --- a/fs/xfs/linux-2.6/xfs_vfs.h +++ b/fs/xfs/linux-2.6/xfs_vfs.h | |||
@@ -44,8 +44,6 @@ typedef struct bhv_vfs_sync_work { | |||
44 | typedef struct bhv_vfs { | 44 | typedef struct bhv_vfs { |
45 | struct xfs_mount *vfs_mount; | 45 | struct xfs_mount *vfs_mount; |
46 | u_int vfs_flag; /* flags */ | 46 | u_int vfs_flag; /* flags */ |
47 | xfs_fsid_t vfs_fsid; /* file system ID */ | ||
48 | xfs_fsid_t *vfs_altfsid; /* An ID fixed for life of FS */ | ||
49 | struct super_block *vfs_super; /* generic superblock pointer */ | 47 | struct super_block *vfs_super; /* generic superblock pointer */ |
50 | struct task_struct *vfs_sync_task; /* generalised sync thread */ | 48 | struct task_struct *vfs_sync_task; /* generalised sync thread */ |
51 | bhv_vfs_sync_work_t vfs_sync_work; /* work item for VFS_SYNC */ | 49 | bhv_vfs_sync_work_t vfs_sync_work; /* work item for VFS_SYNC */ |