summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-05-03 11:05:33 +0000
committerjeff <jeff@FreeBSD.org>2005-05-03 11:05:33 +0000
commit2b167167e26f6c1a9f95c7656d37b3c0465913e7 (patch)
tree728cce91af4446c2096f9e72fa4d72d0470d2442 /sys
parentdde0e2eb941b89fa05f92a49c943c4406db19d72 (diff)
downloadFreeBSD-src-2b167167e26f6c1a9f95c7656d37b3c0465913e7.zip
FreeBSD-src-2b167167e26f6c1a9f95c7656d37b3c0465913e7.tar.gz
- Set the v_object pointer after a successful VOP_OPEN(). This isn't a
perfect solution as the lower vm object can change at unpredictable times if our lower vp happens to be on another unionfs, etc. Submitted by: Oleg Sharoiko <os@rsu.ru>
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/unionfs/union_vnops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c
index 061696a..0379235 100644
--- a/sys/fs/unionfs/union_vnops.c
+++ b/sys/fs/unionfs/union_vnops.c
@@ -747,7 +747,8 @@ union_open(ap)
if (error == 0)
error = VOP_OPEN(tvp, mode, cred, td, -1);
-
+ if (error == 0)
+ ap->a_vp->v_object = tvp->v_object;
/*
* Release any locks held.
*/
OpenPOWER on IntegriCloud