From b89bf231e83667f405d49aa686a4604059c7de42 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 21 Nov 2001 22:08:55 +0000 Subject: 2001-11-21 Roland McGrath * inode.c (read_node): Just always call getpid for the fsid value. --- ext2fs/inode.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ext2fs/inode.c b/ext2fs/inode.c index cc252cd7..269fea6b 100644 --- a/ext2fs/inode.c +++ b/ext2fs/inode.c @@ -198,7 +198,6 @@ static error_t read_node (struct node *np) { error_t err; - static int fsid, fsidset; struct stat *st = &np->dn_stat; struct disknode *dn = np->dn; struct ext2_inode *di = dino (np->cache_id); @@ -208,14 +207,8 @@ read_node (struct node *np) if (err) return err; - if (!fsidset) - { - fsid = getpid (); - fsidset = 1; - } - st->st_fstype = FSTYPE_EXT2FS; - st->st_fsid = fsid; + st->st_fsid = getpid (); /* This call is very cheap. */ st->st_ino = np->cache_id; st->st_blksize = vm_page_size * 2; -- cgit v1.2.3