patch-2.2.18 linux/fs/ext2/ialloc.c
Next file: linux/fs/ext2/inode.c
Previous file: linux/fs/ext2/fsync.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Sun Oct 15 21:15:17 2000
- Orig file:
v2.2.17/fs/ext2/ialloc.c
- Orig date:
Fri Apr 21 12:46:42 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/fs/ext2/ialloc.c linux/fs/ext2/ialloc.c
@@ -478,8 +478,14 @@
if (inode->u.ext2_i.i_flags & EXT2_SYNC_FL)
inode->i_flags |= MS_SYNCHRONOUS;
insert_inode_hash(inode);
+ /*
+ * dhXXX:
+ * To be really picky we should set i_generation to one more than
+ * whatever's on the disk, to ensure a monotonic advance of
+ * generation for NFS. But the odds of duplicating the last igen
+ * are only 1 in 2^32...
+ */
inode->i_generation = inode_generation_count++;
- inode->u.ext2_i.i_version = inode->i_generation;
mark_inode_dirty(inode);
unlock_super (sb);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)