This patch fixes the i_generation (what was called i_version) code
in ext2. It also adds a location to keep a generation number in the
nfsd filehandle.
-------------------------------------------------------------------------------
diff -u --new-file -X exclude linux-2.2.7-knfsdv3/fs/ext2/ialloc.c linux/fs/ext2/ialloc.c
--- linux-2.2.7-knfsdv3/fs/ext2/ialloc.c Tue Oct 20 14:08:14 1998
+++ linux/fs/ext2/ialloc.c Mon May 10 22:59:21 1999
@@ -268,21 +268,6 @@
}
/*
- * This function increments the inode version number
- *
- * This may be used one day by the NFS server
- */
-static void inc_inode_version (struct inode * inode,
- struct ext2_group_desc *gdp,
- int mode)
-{
- inode->u.ext2_i.i_version++;
- mark_inode_dirty(inode);
-
- return;
-}
-
-/*
* There are two policies for allocating an inode. If the new inode is
* a directory, then a forward search is made for a block group with both
* free space and a low directory-to-inode ratio; if that fails, then of
@@ -493,8 +478,8 @@
if (inode->u.ext2_i.i_flags & EXT2_SYNC_FL)
inode->i_flags |= MS_SYNCHRONOUS;
insert_inode_hash(inode);
+ inode->i_generation++;
mark_inode_dirty(inode);
- inc_inode_version (inode, gdp, mode);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/