Subject: afs/fs/afs inode.c,1.16,1.17

From: [email-masked]
Date: Thu, 26 Feb 2004 09:22:20 +0000

Update of /home/cvs/afs/fs/afs
In directory phoenix.infradead.org:/tmp/cvs-serv16843/fs/afs

Modified Files:
	inode.c 
Log Message:
C99 fix, noatime fix and removed #if from inside macro call

Index: inode.c
===================================================================
RCS file: /home/cvs/afs/fs/afs/inode.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- inode.c	19 Jan 2004 10:04:11 -0000	1.16
+++ inode.c	26 Feb 2004 09:22:17 -0000	1.17
@@ -147,7 +147,7 @@
 inline int afs_iget(struct super_block *sb, struct afs_fid *fid,
 		    struct inode **_inode)
 {
-	struct afs_iget_data data = { fid: *fid };
+	struct afs_iget_data data = { .fid = *fid };
 	struct afs_super_info *as;
 	struct afs_vnode *vnode;
 	struct inode *inode;
@@ -188,6 +188,7 @@
 #endif
 
 	/* okay... it's a new inode */
+        inode->i_flags |= S_NOATIME;
 	vnode->flags |= AFS_VNODE_CHANGED;
 	ret = afs_inode_fetch_status(inode);
 	if (ret<0)
@@ -197,16 +198,10 @@
 	unlock_new_inode(inode);
 
 	*_inode = inode;
-	_leave(" = 0 [CB { v=%u x=%lu t=%u } c=%p]",
+	_leave(" = 0 [CB { v=%u x=%lu t=%u }]",
 	       vnode->cb_version,
 	       vnode->cb_timeout.timo_jif,
-	       vnode->cb_type,
-#ifdef AFS_CACHING_SUPPORT
-	       vnode->cache
-#else
-	       NULL
-#endif
-	       );
+	       vnode->cb_type);
 	return 0;
 
 	/* failure */