lkml.org 
[lkml]   [1999]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch] VFS inode.i_generation patch
Date
From
This patch sets i_generation to a known value for filesystems
that don't support it. It does not need to be zero, but it
seems as good a choice as any.

--- linux-2.2.3/fs/inode.c Mon Feb 22 11:47:42 1999
+++ linux/fs/inode.c Mon Mar 15 08:45:20 1999
@@ -517,6 +517,7 @@
inode->i_nlink = 1;
inode->i_writecount = 0;
inode->i_size = 0;
+ inode->i_generation = 0;
memset(&inode->i_dquot, 0, sizeof(inode->i_dquot));
sema_init(&inode->i_sem, 1);
}
--
Allen Morris <gam3@ixlabs.com>

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.044 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site