Commit e7f873ed authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] ext3 inode generation improvements.

Originally from Andrew Morton
parent 66fbb5f7
......@@ -509,7 +509,7 @@ struct inode * ext3_new_inode (handle_t *handle,
if (IS_SYNC(inode))
handle->h_sync = 1;
insert_inode_hash(inode);
inode->i_generation = event++;
inode->i_generation = sb->u.ext3_sb.s_next_generation++;
ei->i_state = EXT3_STATE_NEW;
err = ext3_mark_inode_dirty(handle, inode);
......
......@@ -61,6 +61,7 @@ struct ext3_sb_info {
int s_desc_per_block_bits;
int s_inode_size;
int s_first_ino;
u32 s_next_generation;
/* Journaling */
struct inode * s_journal_inode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment