From d65736a1c018116db293dfb6f5e1a53271f29e9d Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Tue, 3 May 2005 11:05:33 +0000 Subject: [PATCH] - 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 --- sys/fs/unionfs/union_vnops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c index 061696af144..037923576d4 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. */