From c37b9230c5ce845483d573efbb19e41d5b5cc48f Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 6 Jan 2010 15:43:18 +0000 Subject: [PATCH] Linux: Mark our super block as not updating access time We don't update access times, so mark our mount options as such. FIXES 126084 Change-Id: Ic1591b943288dae45267676046f78e02c306ec08 Reviewed-on: http://gerrit.openafs.org/1071 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/LINUX/osi_vfsops.c | 1 + src/afs/LINUX24/osi_vfsops.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c index 79963449bd..6e67e12401 100644 --- a/src/afs/LINUX/osi_vfsops.c +++ b/src/afs/LINUX/osi_vfsops.c @@ -102,6 +102,7 @@ afs_fill_super(struct super_block *sb, void *data, int silent) __module_get(THIS_MODULE); afs_globalVFS = sb; + sb->s_flags |= MS_NOATIME; sb->s_blocksize = 1024; sb->s_blocksize_bits = 10; sb->s_magic = AFS_VFSMAGIC; diff --git a/src/afs/LINUX24/osi_vfsops.c b/src/afs/LINUX24/osi_vfsops.c index 078035f82f..ea4a7bebfa 100644 --- a/src/afs/LINUX24/osi_vfsops.c +++ b/src/afs/LINUX24/osi_vfsops.c @@ -92,6 +92,7 @@ afs_read_super(struct super_block *sb, void *data, int silent) MOD_INC_USE_COUNT; afs_globalVFS = sb; + sb->s_flags |= MS_NOATIME; sb->s_blocksize = 1024; sb->s_blocksize_bits = 10; sb->s_magic = AFS_VFSMAGIC;