patch-2.4.17 linux/fs/inode.c
Next file: linux/fs/intermezzo/file.c
Previous file: linux/fs/inflate_fs/inflate_syms.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Dec 21 16:40:32 2001
- Orig file:
linux-2.4.16/fs/inode.c
- Orig date:
Mon Nov 26 13:29:17 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/fs/inode.c linux/fs/inode.c
@@ -1072,7 +1072,7 @@
}
inodes_stat.nr_unused++;
spin_unlock(&inode_lock);
- if (!sb || sb->s_flags & MS_ACTIVE)
+ if (!sb || (sb->s_flags & MS_ACTIVE))
return;
write_inode_now(inode, 1);
spin_lock(&inode_lock);
@@ -1187,6 +1187,8 @@
void update_atime (struct inode *inode)
{
+ if (inode->i_atime == CURRENT_TIME)
+ return;
if ( IS_NOATIME (inode) ) return;
if ( IS_NODIRATIME (inode) && S_ISDIR (inode->i_mode) ) return;
if ( IS_RDONLY (inode) ) return;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)