summaryrefslogtreecommitdiffstats
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authordds <dds@FreeBSD.org>2005-10-12 06:56:00 +0000
committerdds <dds@FreeBSD.org>2005-10-12 06:56:00 +0000
commit0fb2e655fdaa468d5188d6e87ef07cb383149b5b (patch)
treeb831f3d94b8f98284035c19c12732a3f1465d75b /sys/sys/vnode.h
parent66b195cfae1820593765c34e4917eb3a71d0204f (diff)
downloadFreeBSD-src-0fb2e655fdaa468d5188d6e87ef07cb383149b5b.zip
FreeBSD-src-0fb2e655fdaa468d5188d6e87ef07cb383149b5b.tar.gz
Move execve's access time update functionality into a new
vfs_mark_atime() function, and use the new function for performing efficient atime updates in mmap(). Reviewed by: bde MFC after: 2 weeks
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 52a1d2f..4073e41 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -285,7 +285,7 @@ struct vattr {
*/
#define VA_UTIMES_NULL 0x01 /* utimes argument was NULL */
#define VA_EXCLUSIVE 0x02 /* exclusive create request */
-#define VA_EXECVE_ATIME 0x04 /* setting atime for execve */
+#define VA_MARK_ATIME 0x04 /* setting atime for execve/mmap */
/*
* Flags for ioflag. (high 16 bits used to ask for read-ahead and
@@ -727,6 +727,7 @@ void vfs_hash_rehash(struct vnode *vp, u_int hash);
void vfs_hash_remove(struct vnode *vp);
int vfs_kqfilter(struct vop_kqfilter_args *);
+void vfs_mark_atime(struct vnode *vp, struct thread *td);
struct dirent;
int vfs_read_dirent(struct vop_readdir_args *ap, struct dirent *dp, off_t off);
OpenPOWER on IntegriCloud