summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-10-15 07:32:45 +0000
committerbde <bde@FreeBSD.org>1997-10-15 07:32:45 +0000
commita272224fba787e5057c8b9ddc061fb5fc14c7d54 (patch)
tree86f684796fc84dbf6c91e4cf73b143e4b24c01db /sys/ufs
parent99be2f82d991c864109cd02f8db59704a57c67f2 (diff)
downloadFreeBSD-src-a272224fba787e5057c8b9ddc061fb5fc14c7d54.zip
FreeBSD-src-a272224fba787e5057c8b9ddc061fb5fc14c7d54.tar.gz
IN_HASHED goes in the in-core flags ip->i_flag, not in the on-disk flags
ip->i_flags. Rev.1.18 completely broke ufs. My root directory went away about 10 seconds after booting. I think file system damage was null, since IN_HASHED = 0x80 is not used in the disk flags (it would probably be UF_SOMETHING if it were used).
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_ihash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/ufs/ufs/ufs_ihash.c b/sys/ufs/ufs/ufs_ihash.c
index 8d41313..a34e8c8 100644
--- a/sys/ufs/ufs/ufs_ihash.c
+++ b/sys/ufs/ufs/ufs_ihash.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_ihash.c 8.7 (Berkeley) 5/17/95
- * $Id: ufs_ihash.c,v 1.10 1997/10/14 18:46:47 phk Exp $
+ * $Id: ufs_ihash.c,v 1.11 1997/10/14 18:51:07 phk Exp $
*/
#include <sys/param.h>
@@ -131,7 +131,7 @@ ufs_ihashins(ip)
simple_lock(&ufs_ihash_slock);
ipp = INOHASH(ip->i_dev, ip->i_number);
LIST_INSERT_HEAD(ipp, ip, i_hash);
- ip->i_flags |= IN_HASHED;
+ ip->i_flag |= IN_HASHED;
simple_unlock(&ufs_ihash_slock);
}
@@ -143,8 +143,8 @@ ufs_ihashrem(ip)
struct inode *ip;
{
simple_lock(&ufs_ihash_slock);
- if (ip->i_flags & IN_HASHED) {
- ip->i_flags &= ~IN_HASHED;
+ if (ip->i_flag & IN_HASHED) {
+ ip->i_flag &= ~IN_HASHED;
LIST_REMOVE(ip, i_hash);
#ifdef DIAGNOSTIC
ip->i_hash.le_next = NULL;
OpenPOWER on IntegriCloud