From 8d92b877b26d27776651497500b8d0b65c75ff7b Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 17 Apr 1995 15:41:07 +0000 Subject: Formerly inode.c.~11~ --- ext2fs/inode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext2fs/inode.c b/ext2fs/inode.c index 0056d18a..9158a3c8 100644 --- a/ext2fs/inode.c +++ b/ext2fs/inode.c @@ -31,7 +31,7 @@ static struct node *nodehash[INOHSZ]; static error_t read_disknode (struct node *np); -spin_lock_t gennumberlock = SPIN_LOCK_INITIALIZER; +spin_lock_t generation_lock = SPIN_LOCK_INITIALIZER; /* Initialize the inode hash table. */ void @@ -92,11 +92,11 @@ iget (ino_t inum, struct node **npp) if (!diskfs_readonly && !np->dn_stat.st_gen) { - spin_lock (&gennumberlock); + spin_lock (&generation_lock); if (++nextgennumber < diskfs_mtime->seconds) nextgennumber = diskfs_mtime->seconds; np->dn_stat.st_gen = nextgennumber; - spin_unlock (&gennumberlock); + spin_unlock (&generation_lock); np->dn_set_ctime = 1; } -- cgit v1.2.3