summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/ffs_inode.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2008-10-10 21:23:50 +0000
committerattilio <attilio@FreeBSD.org>2008-10-10 21:23:50 +0000
commitb8bf37e5857b138031059dd4768deb4937efe183 (patch)
treefd8b76b514f556d4aec4cdd5d6fd55919f6e33ab /sys/ufs/ffs/ffs_inode.c
parent7ce828dea0b330b67ef23488dde94b994adcdcfc (diff)
downloadFreeBSD-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/ufs/ffs/ffs_inode.c')
-rw-r--r--sys/ufs/ffs/ffs_inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 4c58e41..bb3a48c 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -204,7 +204,7 @@ ffs_truncate(vp, length, flags, cred, td)
#ifdef QUOTA
(void) chkdq(ip, -extblocks, NOCRED, 0);
#endif
- vinvalbuf(vp, V_ALT, td, 0, 0);
+ vinvalbuf(vp, V_ALT, 0, 0);
ip->i_din2->di_extsize = 0;
for (i = 0; i < NXADDR; i++) {
oldblks[i] = ip->i_din2->di_extb[i];
@@ -280,7 +280,7 @@ ffs_truncate(vp, length, flags, cred, td)
softdep_setup_freeblocks(ip, length, needextclean ?
IO_EXT | IO_NORMAL : IO_NORMAL);
ASSERT_VOP_LOCKED(vp, "ffs_truncate1");
- vinvalbuf(vp, needextclean ? 0 : V_NORMAL, td, 0, 0);
+ vinvalbuf(vp, needextclean ? 0 : V_NORMAL, 0, 0);
vnode_pager_setsize(vp, 0);
ip->i_flag |= IN_CHANGE | IN_UPDATE;
return (ffs_update(vp, 0));
OpenPOWER on IntegriCloud