diff options
author | David Greenman <dg@FreeBSD.org> | 1996-09-03 07:09:11 +0000 |
---|---|---|
committer | David Greenman <dg@FreeBSD.org> | 1996-09-03 07:09:11 +0000 |
commit | 9e04304259fd3db4a5cb2b1530e2f96355d215b8 (patch) | |
tree | 2a7ffd7597129efe8996e2f9d89ce6dc7fc59af2 /sys/ufs | |
parent | 6bf10e790ec0f8919954fe21748a66e96a6ca247 (diff) | |
download | src-9e04304259fd3db4a5cb2b1530e2f96355d215b8.tar.gz src-9e04304259fd3db4a5cb2b1530e2f96355d215b8.zip |
Implemented kernel side of MNT_NOATIME mount option. This option disables
the file access time update on reads and can be useful in reducing
filesystem overhead in cases where the access time is not important (like
Usenet news spools).
Notes
Notes:
svn path=/head/; revision=18006
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_readwrite.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c index ff2c54015728..415e7c6a70e2 100644 --- a/sys/ufs/ufs/ufs_readwrite.c +++ b/sys/ufs/ufs/ufs_readwrite.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ufs_readwrite.c 8.7 (Berkeley) 1/21/94 - * $Id: ufs_readwrite.c,v 1.20 1996/01/19 03:59:26 dyson Exp $ + * $Id: ufs_readwrite.c,v 1.21 1996/06/25 03:00:44 davidg Exp $ */ #ifdef LFS_READWRITE @@ -163,7 +163,8 @@ READ(ap) } if (bp != NULL) bqrelse(bp); - ip->i_flag |= IN_ACCESS; + if (!(vp->v_mount->mnt_flag & MNT_NOATIME)) + ip->i_flag |= IN_ACCESS; return (error); } |