summaryrefslogtreecommitdiff
path: root/ext2fs/inode.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-11-21 22:08:55 +0000
committerRoland McGrath <roland@gnu.org>2001-11-21 22:08:55 +0000
commitb89bf231e83667f405d49aa686a4604059c7de42 (patch)
treec491868713f062e7c76b40609db7434545150572 /ext2fs/inode.c
parente1db96867daa89549aa2961031f0549a68432e09 (diff)
2001-11-21 Roland McGrath <roland@frob.com>
* inode.c (read_node): Just always call getpid for the fsid value.
Diffstat (limited to 'ext2fs/inode.c')
-rw-r--r--ext2fs/inode.c9
1 files changed, 1 insertions, 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;