diff options
author | attilio <attilio@FreeBSD.org> | 2008-10-10 21:23:50 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2008-10-10 21:23:50 +0000 |
commit | b8bf37e5857b138031059dd4768deb4937efe183 (patch) | |
tree | fd8b76b514f556d4aec4cdd5d6fd55919f6e33ab /sys/geom/geom_vfs.c | |
parent | 7ce828dea0b330b67ef23488dde94b994adcdcfc (diff) | |
download | FreeBSD-src-b8bf37e5857b138031059dd4768deb4937efe183.zip FreeBSD-src-b8bf37e5857b138031059dd4768deb4937efe183.tar.gz |
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>
Diffstat (limited to 'sys/geom/geom_vfs.c')
-rw-r--r-- | sys/geom/geom_vfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_vfs.c b/sys/geom/geom_vfs.c index 4a33d22..0621eff 100644 --- a/sys/geom/geom_vfs.c +++ b/sys/geom/geom_vfs.c @@ -163,7 +163,7 @@ g_vfs_open(struct vnode *vp, struct g_consumer **cpp, const char *fsname, int wr } void -g_vfs_close(struct g_consumer *cp, struct thread *td) +g_vfs_close(struct g_consumer *cp) { struct g_geom *gp; struct bufobj *bo; @@ -172,6 +172,6 @@ g_vfs_close(struct g_consumer *cp, struct thread *td) gp = cp->geom; bo = gp->softc; - bufobj_invalbuf(bo, V_SAVE, td, 0, 0); + bufobj_invalbuf(bo, V_SAVE, 0, 0); g_wither_geom_close(gp, ENXIO); } |