aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/cd9660
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2008-10-10 21:23:50 +0000
committerAttilio Rao <attilio@FreeBSD.org>2008-10-10 21:23:50 +0000
commit0d7935fd01df24b2eab5a826fd131cefb9417c79 (patch)
treefd8b76b514f556d4aec4cdd5d6fd55919f6e33ab /sys/fs/cd9660
parent6b386d393c367e425316e186ac75db5a41521338 (diff)
downloadsrc-0d7935fd01df24b2eab5a826fd131cefb9417c79.tar.gz
src-0d7935fd01df24b2eab5a826fd131cefb9417c79.zip
Remove the struct thread unuseful argument from bufobj interface.
In particular following functions KPI results modified: - bufobj_invalbuf() - bufsync() and BO_SYNC() "virtual method" of the buffer objects set. Main consumers of bufobj functions are affected by this change too and, in particular, functions which changed their KPI are: - vinvalbuf() - g_vfs_close() Due to the KPI breakage, __FreeBSD_version will be bumped in a later commit. As a side note, please consider just temporary the 'curthread' argument passing to VOP_SYNC() (in bufsync()) as it will be axed out ASAP Reviewed by: kib Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>
Notes
Notes: svn path=/head/; revision=183754
Diffstat (limited to 'sys/fs/cd9660')
-rw-r--r--sys/fs/cd9660/cd9660_vfsops.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
index 41502d17f752..f4ff62dc8d5d 100644
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -88,8 +88,7 @@ static struct vfsops cd9660_vfsops = {
VFS_SET(cd9660_vfsops, cd9660, VFCF_READONLY);
MODULE_VERSION(cd9660, 1);
-static int iso_mountfs(struct vnode *devvp, struct mount *mp,
- struct thread *td);
+static int iso_mountfs(struct vnode *devvp, struct mount *mp);
/*
* VFS Operations.
@@ -181,7 +180,7 @@ cd9660_mount(struct mount *mp, struct thread *td)
VOP_UNLOCK(devvp, 0);
if ((mp->mnt_flag & MNT_UPDATE) == 0) {
- error = iso_mountfs(devvp, mp, td);
+ error = iso_mountfs(devvp, mp);
} else {
if (devvp != imp->im_devvp)
error = EINVAL; /* needs translation */
@@ -200,10 +199,9 @@ cd9660_mount(struct mount *mp, struct thread *td)
* Common code for mount and mountroot
*/
static int
-iso_mountfs(devvp, mp, td)
+iso_mountfs(devvp, mp)
struct vnode *devvp;
struct mount *mp;
- struct thread *td;
{
struct iso_mnt *isomp = (struct iso_mnt *)0;
struct buf *bp = NULL;
@@ -249,7 +247,7 @@ iso_mountfs(devvp, mp, td)
if ((ISO_DEFAULT_BLOCK_SIZE % cp->provider->sectorsize) != 0) {
DROP_GIANT();
g_topology_lock();
- g_vfs_close(cp, td);
+ g_vfs_close(cp);
g_topology_unlock();
PICKUP_GIANT();
return (EINVAL);
@@ -482,7 +480,7 @@ out:
if (cp != NULL) {
DROP_GIANT();
g_topology_lock();
- g_vfs_close(cp, td);
+ g_vfs_close(cp);
g_topology_unlock();
PICKUP_GIANT();
}
@@ -525,7 +523,7 @@ cd9660_unmount(mp, mntflags, td)
}
DROP_GIANT();
g_topology_lock();
- g_vfs_close(isomp->im_cp, td);
+ g_vfs_close(isomp->im_cp);
g_topology_unlock();
PICKUP_GIANT();
vrele(isomp->im_devvp);