aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/quota
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-06-09 02:48:30 -0400
committerNathan Scott <nathans@sgi.com>2006-06-09 02:48:30 -0400
commitb83bd1388133e914c38bd31d69bc90143e6ab10c (patch)
tree3f7fecf3913d1aa8216e06f109746c63ec0ac501 /fs/xfs/quota
parent932f2c323196c214e645d5a572a1d7b562c0f93f (diff)
[XFS] Resolve a namespace collision on vfs/vfsops for FreeBSD porters.
SGI-PV: 9533338 SGI-Modid: xfs-linux-melb:xfs-kern:26106a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/quota')
-rw-r--r--fs/xfs/quota/xfs_qm_bhv.c23
-rw-r--r--fs/xfs/quota/xfs_qm_syscalls.c2
2 files changed, 10 insertions, 15 deletions
diff --git a/fs/xfs/quota/xfs_qm_bhv.c b/fs/xfs/quota/xfs_qm_bhv.c
index 181dd90b29ce..78f5962e5781 100644
--- a/fs/xfs/quota/xfs_qm_bhv.c
+++ b/fs/xfs/quota/xfs_qm_bhv.c
@@ -129,7 +129,7 @@ xfs_qm_parseargs(
129 return XFS_ERROR(EINVAL); 129 return XFS_ERROR(EINVAL);
130 } 130 }
131 131
132 PVFS_PARSEARGS(BHV_NEXT(bhv), options, args, update, error); 132 error = bhv_next_vfs_parseargs(BHV_NEXT(bhv), options, args, update);
133 if (!error && !referenced) 133 if (!error && !referenced)
134 bhv_remove_vfsops(bhvtovfs(bhv), VFS_POSITION_QM); 134 bhv_remove_vfsops(bhvtovfs(bhv), VFS_POSITION_QM);
135 return error; 135 return error;
@@ -140,9 +140,8 @@ xfs_qm_showargs(
140 struct bhv_desc *bhv, 140 struct bhv_desc *bhv,
141 struct seq_file *m) 141 struct seq_file *m)
142{ 142{
143 struct vfs *vfsp = bhvtovfs(bhv); 143 struct bhv_vfs *vfsp = bhvtovfs(bhv);
144 struct xfs_mount *mp = XFS_VFSTOM(vfsp); 144 struct xfs_mount *mp = XFS_VFSTOM(vfsp);
145 int error;
146 145
147 if (mp->m_qflags & XFS_UQUOTA_ACCT) { 146 if (mp->m_qflags & XFS_UQUOTA_ACCT) {
148 (mp->m_qflags & XFS_UQUOTA_ENFD) ? 147 (mp->m_qflags & XFS_UQUOTA_ENFD) ?
@@ -165,8 +164,7 @@ xfs_qm_showargs(
165 if (!(mp->m_qflags & XFS_ALL_QUOTA_ACCT)) 164 if (!(mp->m_qflags & XFS_ALL_QUOTA_ACCT))
166 seq_puts(m, "," MNTOPT_NOQUOTA); 165 seq_puts(m, "," MNTOPT_NOQUOTA);
167 166
168 PVFS_SHOWARGS(BHV_NEXT(bhv), m, error); 167 return bhv_next_vfs_showargs(BHV_NEXT(bhv), m);
169 return error;
170} 168}
171 169
172STATIC int 170STATIC int
@@ -175,14 +173,12 @@ xfs_qm_mount(
175 struct xfs_mount_args *args, 173 struct xfs_mount_args *args,
176 struct cred *cr) 174 struct cred *cr)
177{ 175{
178 struct vfs *vfsp = bhvtovfs(bhv); 176 struct bhv_vfs *vfsp = bhvtovfs(bhv);
179 struct xfs_mount *mp = XFS_VFSTOM(vfsp); 177 struct xfs_mount *mp = XFS_VFSTOM(vfsp);
180 int error;
181 178
182 if (args->flags & (XFSMNT_UQUOTA | XFSMNT_GQUOTA | XFSMNT_PQUOTA)) 179 if (args->flags & (XFSMNT_UQUOTA | XFSMNT_GQUOTA | XFSMNT_PQUOTA))
183 xfs_qm_mount_quotainit(mp, args->flags); 180 xfs_qm_mount_quotainit(mp, args->flags);
184 PVFS_MOUNT(BHV_NEXT(bhv), args, cr, error); 181 return bhv_next_vfs_mount(BHV_NEXT(bhv), args, cr);
185 return error;
186} 182}
187 183
188/* 184/*
@@ -205,7 +201,7 @@ xfs_qm_statvfs(
205 __uint64_t limit; 201 __uint64_t limit;
206 int error; 202 int error;
207 203
208 error = PVFS_STATVFS(BHV_NEXT(bhv), statp, vnode); 204 error = bhv_next_vfs_statvfs(BHV_NEXT(bhv), statp, vnode);
209 if (error || !vnode) 205 if (error || !vnode)
210 return error; 206 return error;
211 207
@@ -246,7 +242,7 @@ xfs_qm_syncall(
246 int flags, 242 int flags,
247 cred_t *credp) 243 cred_t *credp)
248{ 244{
249 struct vfs *vfsp = bhvtovfs(bhv); 245 struct bhv_vfs *vfsp = bhvtovfs(bhv);
250 struct xfs_mount *mp = XFS_VFSTOM(vfsp); 246 struct xfs_mount *mp = XFS_VFSTOM(vfsp);
251 int error; 247 int error;
252 248
@@ -265,8 +261,7 @@ xfs_qm_syncall(
265 } 261 }
266 } 262 }
267 } 263 }
268 PVFS_SYNC(BHV_NEXT(bhv), flags, credp, error); 264 return bhv_next_vfs_sync(BHV_NEXT(bhv), flags, credp);
269 return error;
270} 265}
271 266
272STATIC int 267STATIC int
@@ -401,7 +396,7 @@ STATIC struct xfs_qmops xfs_qmcore_xfs = {
401 .xfs_dqtrxops = &xfs_trans_dquot_ops, 396 .xfs_dqtrxops = &xfs_trans_dquot_ops,
402}; 397};
403 398
404struct bhv_vfsops xfs_qmops = { { 399struct bhv_module_vfsops xfs_qmops = { {
405 BHV_IDENTITY_INIT(VFS_BHV_QM, VFS_POSITION_QM), 400 BHV_IDENTITY_INIT(VFS_BHV_QM, VFS_POSITION_QM),
406 .vfs_parseargs = xfs_qm_parseargs, 401 .vfs_parseargs = xfs_qm_parseargs,
407 .vfs_showargs = xfs_qm_showargs, 402 .vfs_showargs = xfs_qm_showargs,
diff --git a/fs/xfs/quota/xfs_qm_syscalls.c b/fs/xfs/quota/xfs_qm_syscalls.c
index c55db463bbf2..afc7c1c696b8 100644
--- a/fs/xfs/quota/xfs_qm_syscalls.c
+++ b/fs/xfs/quota/xfs_qm_syscalls.c
@@ -91,8 +91,8 @@ xfs_qm_quotactl(
91 xfs_caddr_t addr) 91 xfs_caddr_t addr)
92{ 92{
93 xfs_mount_t *mp; 93 xfs_mount_t *mp;
94 bhv_vfs_t *vfsp;
94 int error; 95 int error;
95 struct vfs *vfsp;
96 96
97 vfsp = bhvtovfs(bdp); 97 vfsp = bhvtovfs(bdp);
98 mp = XFS_VFSTOM(vfsp); 98 mp = XFS_VFSTOM(vfsp);