NFS atime problem in ac kernels

Keh-Cheng Chu (kehcheng@quake.Stanford.EDU)
Tue, 2 Oct 2001 08:43:16 -0700


In fs/nfs/inode.c, the function __nfs_refresh_inode() has a
line removed (see below) from all recent ac kernels. This
may be the reason why, in ac kernels but not in Linus kernels,
the atime of a file in an NFS mounted directory does not get
updated after file access. Putting the line back has solved
the problem for me.

Keh-Cheng Chu

--- linux-2.4.10/fs/nfs/inode.c Fri Sep 7 09:40:04 2001
+++ linux-2.4.10-ac3/fs/nfs/inode.c Tue Oct 2 08:07:02 2001

@@ -1006,8 +1029,6 @@
NFS_CACHE_CTIME(inode) = fattr->ctime;
inode->i_ctime = nfs_time_to_secs(fattr->ctime);

- inode->i_atime = nfs_time_to_secs(fattr->atime);
-
NFS_CACHE_MTIME(inode) = new_mtime;
inode->i_mtime = nfs_time_to_secs(new_mtim
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/