diff options
author | Miles Bader <miles@gnu.org> | 1996-08-15 02:21:23 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-08-15 02:21:23 +0000 |
commit | 3cdda33ced2cc5250a1e905afeaede8f48970bb7 (patch) | |
tree | 130dc373ad81501ff3403303f3e40a02f47a9876 | |
parent | 67bbd0b355ed62011b60181d30fc12b252c5036a (diff) |
(ext2_alloc_inode, diskfs_free_node):
Pass SBLOCK as a parameter to EXT2_FIRST_INO (v2.x change).
-rw-r--r-- | ext2fs/ialloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c index f2d9348e..0e3a7e2a 100644 --- a/ext2fs/ialloc.c +++ b/ext2fs/ialloc.c @@ -63,7 +63,7 @@ diskfs_free_node (struct node *np, mode_t old_mode) spin_lock (&global_lock); - if (inum < EXT2_FIRST_INO || inum > sblock->s_inodes_count) + if (inum < EXT2_FIRST_INO (sblock) || inum > sblock->s_inodes_count) { ext2_error ("reserved inode or nonexistent inode: %u", inum); spin_unlock (&global_lock); @@ -236,7 +236,7 @@ repeat: } inum += i * sblock->s_inodes_per_group + 1; - if (inum < EXT2_FIRST_INO || inum > sblock->s_inodes_count) + if (inum < EXT2_FIRST_INO (sblock) || inum > sblock->s_inodes_count) { ext2_error ("reserved inode or inode > inodes count - " "block_group = %d,inode=%d", i, inum); |