Do not fill in a non-zero inode change_count until the inode is loaded.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Tue, 30 Mar 2010 03:36:03 +0000 (20:36 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Tue, 30 Mar 2010 03:36:03 +0000 (20:36 -0700)
bluesky/inode.c

index 40531cd..1c89c29 100644 (file)
@@ -366,6 +366,7 @@ void bluesky_inode_fetch(BlueSkyFS *fs, uint64_t inum)
     sprintf(key, "inode-%016"PRIx64, inum);
 
     BlueSkyInode *inode = bluesky_new_inode(inum, fs, BLUESKY_PENDING);
+    i->change_count = 0;
     bluesky_inode_ref(inode);       // Extra ref held by fetching process
     g_mutex_lock(inode->lock);
     bluesky_insert_inode(fs, inode);