From 9e52e7ec1cfe580e4beec1143fabaf365022a37b Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 10 Oct 1996 21:42:22 +0000 Subject: (diskfs_S_dir_lookup): Frob lock in NEWPI->po, not PO. : New include. --- libdiskfs/dir-lookup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libdiskfs') diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c index 272b8bd8..cba6347d 100644 --- a/libdiskfs/dir-lookup.c +++ b/libdiskfs/dir-lookup.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -409,10 +410,10 @@ diskfs_S_dir_lookup (struct protid *dircred, if (! error) { if (flags & O_EXLOCK) - error = fshelp_acquire_lock (&np->userlock, &po->lock_status, + error = fshelp_acquire_lock (&np->userlock, &newpi->po->lock_status, &np->lock, LOCK_EX); else if (flags & O_SHLOCK) - error = fshelp_acquire_lock (&np->userlock, &po->lock_status, + error = fshelp_acquire_lock (&np->userlock, &newpi->po->lock_status, &np->lock, LOCK_SH); } -- cgit v1.2.3