From: Michael Vrable Date: Tue, 30 Mar 2010 03:36:03 +0000 (-0700) Subject: Do not fill in a non-zero inode change_count until the inode is loaded. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=64ad40ff2dbb8df3f2599ee7487ad2a1c7f8592e;p=bluesky.git Do not fill in a non-zero inode change_count until the inode is loaded. --- diff --git a/bluesky/inode.c b/bluesky/inode.c index 40531cd..1c89c29 100644 --- a/bluesky/inode.c +++ b/bluesky/inode.c @@ -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);