summaryrefslogtreecommitdiff
path: root/ext2fs/ialloc.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-04-11 17:32:16 +0000
committerMiles Bader <miles@gnu.org>1996-04-11 17:32:16 +0000
commita8fdf61daa07b5580c97c481e2a4685381717eb8 (patch)
tree63eba36b3804bcf07f9b767bc72737f556275cc4 /ext2fs/ialloc.c
parentf226931463434e12e74e6f22871416b8b59ce2b1 (diff)
Replace references to the NUMBER field in a node's disknode structures with
references to the CACHE_ID field in the node.
Diffstat (limited to 'ext2fs/ialloc.c')
-rw-r--r--ext2fs/ialloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c
index cefc6850..f2d9348e 100644
--- a/ext2fs/ialloc.c
+++ b/ext2fs/ialloc.c
@@ -1,6 +1,6 @@
/* Inode allocation routines.
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Converted to work under the hurd by Miles Bader <miles@gnu.ai.mit.edu>
@@ -55,7 +55,7 @@ diskfs_free_node (struct node *np, mode_t old_mode)
unsigned long block_group;
unsigned long bit;
struct ext2_group_desc *gdp;
- ino_t inum = np->dn->number;
+ ino_t inum = np->cache_id;
assert (!diskfs_readonly);
@@ -277,12 +277,12 @@ diskfs_alloc_node (struct node *dir, mode_t mode, struct node **node)
assert (!diskfs_readonly);
- inum = ext2_alloc_inode (dir->dn->number, mode);
+ inum = ext2_alloc_inode (dir->cache_id, mode);
if (inum == 0)
return ENOSPC;
- err = iget (inum, &np);
+ err = diskfs_cached_lookup (inum, &np);
if (err)
return err;