X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2FLINUX24%2Fosi_file.c;h=8e965957cab967371b4b6fa85bbe6b15a6190ea2;hp=ba58d051bf7e8a24a36063ba440a2d2f75f7487c;hb=e34702ef89649df47745121f45df32bec1f2fccb;hpb=b2433a3e4cf08e2c489100ea6c7a676712e25369 diff --git a/src/afs/LINUX24/osi_file.c b/src/afs/LINUX24/osi_file.c index ba58d05..8e96595 100644 --- a/src/afs/LINUX24/osi_file.c +++ b/src/afs/LINUX24/osi_file.c @@ -55,7 +55,12 @@ afs_linux_raw_open(afs_dcache_id_t *ainode) osi_Panic("Can't get dentry\n"); tip = dp->d_inode; #endif + +#if defined(S_NOATIME) + tip->i_flags |= S_NOATIME; /* Disable updating access times. */ +#else tip->i_flags |= MS_NOATIME; /* Disable updating access times. */ +#endif #if defined(STRUCT_TASK_HAS_CRED) filp = dentry_open(dp, mntget(afs_cacheMnt), O_RDWR, current_cred());