aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/msdosfs
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/msdosfs
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/msdosfs')
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index e2525b2a7a41..8991e188c021 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -103,8 +103,7 @@ static MALLOC_DEFINE(M_MSDOSFSFAT, "msdosfs_fat", "MSDOSFS file allocation table
struct iconv_functions *msdosfs_iconv;
static int update_mp(struct mount *mp, struct thread *td);
-static int mountmsdosfs(struct vnode *devvp, struct mount *mp,
- struct thread *td);
+static int mountmsdosfs(struct vnode *devvp, struct mount *mp);
static vfs_fhtovp_t msdosfs_fhtovp;
static vfs_mount_t msdosfs_mount;
static vfs_root_t msdosfs_root;
@@ -375,7 +374,7 @@ msdosfs_mount(struct mount *mp, struct thread *td)
return (error);
}
if ((mp->mnt_flag & MNT_UPDATE) == 0) {
- error = mountmsdosfs(devvp, mp, td);
+ error = mountmsdosfs(devvp, mp);
#ifdef MSDOSFS_DEBUG /* only needed for the printf below */
pmp = VFSTOMSDOSFS(mp);
#endif
@@ -405,7 +404,7 @@ msdosfs_mount(struct mount *mp, struct thread *td)
}
static int
-mountmsdosfs(struct vnode *devvp, struct mount *mp, struct thread *td)
+mountmsdosfs(struct vnode *devvp, struct mount *mp)
{
struct msdosfsmount *pmp;
struct buf *bp;
@@ -754,7 +753,7 @@ error_exit:
if (cp != NULL) {
DROP_GIANT();
g_topology_lock();
- g_vfs_close(cp, td);
+ g_vfs_close(cp);
g_topology_unlock();
PICKUP_GIANT();
}
@@ -824,7 +823,7 @@ msdosfs_unmount(struct mount *mp, int mntflags, struct thread *td)
#endif
DROP_GIANT();
g_topology_lock();
- g_vfs_close(pmp->pm_cp, td);
+ g_vfs_close(pmp->pm_cp);
g_topology_unlock();
PICKUP_GIANT();
vrele(pmp->pm_devvp);