summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext2fs/ialloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c
index 5cae3c84..5465bca9 100644
--- a/ext2fs/ialloc.c
+++ b/ext2fs/ialloc.c
@@ -300,9 +300,9 @@ diskfs_alloc_node (struct node *dir, mode_t mode, struct node **node)
*/
spin_lock (&generation_lock);
sex = diskfs_mtime->seconds;
- if (++nextgennumber < (u_long)sex)
- nextgennumber = sex;
- np->dn_stat.st_gen = nextgennumber;
+ if (++next_generation < (u_long)sex)
+ next_generation = sex;
+ np->dn_stat.st_gen = next_generation;
spin_unlock (&generation_lock);
alloc_sync (np);