diff options
author | kevlo <kevlo@FreeBSD.org> | 2008-10-19 13:40:45 +0800 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2008-10-19 13:40:45 +0800 |
commit | 335be67fd5125747d98086cec10f84bdb2fb003b (patch) | |
tree | 4501ddeedbcbfc75c7d4db522e13851831e2e7f6 /sysutils | |
parent | bdfd830cf62bbe150da7cb24ca60647cbdd0656e (diff) | |
download | freebsd-ports-gnome-335be67fd5125747d98086cec10f84bdb2fb003b.tar.gz freebsd-ports-gnome-335be67fd5125747d98086cec10f84bdb2fb003b.tar.zst freebsd-ports-gnome-335be67fd5125747d98086cec10f84bdb2fb003b.zip |
Correct fix for vinvalbuf()
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/fusefs-kmod/files/patch-fuse_module__fuse_vnops.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_vnops.c b/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_vnops.c index e92cfcf0dba8..8237ec4ed4e7 100644 --- a/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_vnops.c +++ b/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_vnops.c @@ -1,5 +1,5 @@ --- fuse_module/fuse_vnops.c.orig 2008-02-05 13:25:57.000000000 +0800 -+++ fuse_module/fuse_vnops.c 2008-10-19 12:31:23.000000000 +0800 ++++ fuse_module/fuse_vnops.c 2008-10-19 13:31:53.000000000 +0800 @@ -799,8 +799,11 @@ struct vnode *vp = ap->a_vp; struct vattr *vap = ap->a_vap; @@ -26,16 +26,19 @@ if (err) return (err); facp->facc_flags |= FACCESS_VA_VALID; -@@ -1929,7 +1936,7 @@ +@@ -1929,7 +1936,11 @@ * It will not invalidate pages which are dirty, locked, under * writeback or mapped into pagetables.") */ -- err = vinvalbuf(vp, 0, td, PCATCH, 0); ++#if VOP_GETATTR_TAKES_THREAD + err = vinvalbuf(vp, 0, td, PCATCH, 0); ++#else + err = vinvalbuf(vp, 0, PCATCH, 0); ++#endif fufh->flags |= FOPEN_KEEP_CACHE; } -@@ -3005,8 +3012,11 @@ +@@ -3005,8 +3016,11 @@ struct vattr *vap = ap->a_vap; struct vnode *vp = ap->a_vp; struct ucred *cred = ap->a_cred; |