From 98846daf14127143ad4ae0eae55a1147ca85ddbc Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 9 Mar 2000 18:57:17 +0000 Subject: MFC 1.33 - move brelse() so last access of data occurs prior to buffer release rather then after the buffer is released. --- sys/ufs/ufs/ufs_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c index 728b5a6ef83c..13d1fffedfad 100644 --- a/sys/ufs/ufs/ufs_lookup.c +++ b/sys/ufs/ufs/ufs_lookup.c @@ -310,7 +310,6 @@ searchloop: } dp->i_ino = ep->d_ino; dp->i_reclen = ep->d_reclen; - brelse(bp); goto found; } } @@ -414,6 +413,7 @@ found: dp->i_size = entryoffsetinblock + DIRSIZ(OFSFMT(vdp), ep); dp->i_flag |= IN_CHANGE | IN_UPDATE; } + brelse(bp); /* * Found component in pathname. -- cgit v1.3