From: thib Date: Sun, 31 Aug 2008 16:58:01 +0000 (+0000) Subject: remove the #if 0'ed NFS_ATTRTIMEO() macro since it was X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c91275c46bb4cc58716aacb62b510a3c7a8eeb41;p=openbsd remove the #if 0'ed NFS_ATTRTIMEO() macro since it was replaced by a function long ago.. ok blambert@ --- diff --git a/sys/nfs/nfs.h b/sys/nfs/nfs.h index 158a9b230e4..ad85bfa84d4 100644 --- a/sys/nfs/nfs.h +++ b/sys/nfs/nfs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs.h,v 1.33 2008/07/05 17:34:26 thib Exp $ */ +/* $OpenBSD: nfs.h,v 1.34 2008/08/31 16:58:01 thib Exp $ */ /* $NetBSD: nfs.h,v 1.10.4.1 1996/05/27 11:23:56 fvdl Exp $ */ /* @@ -120,17 +120,6 @@ #define IO_METASYNC 0 #endif -/* - * Set the attribute timeout based on how recently the file has been modified. - */ -#if 0 /* replaced by nfs_attrtimeo() in nfs_subs.c */ -#define NFS_ATTRTIMEO(np) \ - ((((np)->n_flag & NMODIFIED) || \ - (time_second - (np)->n_mtime) / 10 < NFS_MINATTRTIMO) ? NFS_MINATTRTIMO : \ - ((time_second - (np)->n_mtime) / 10 > NFS_MAXATTRTIMO ? NFS_MAXATTRTIMO : \ - (time_second - (np)->n_mtime) / 10)) -#endif - /* * Structures for the nfssvc(2) syscall. Not that anyone but nfsd and mount_nfs * should ever try and use it.