Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.17-pre8 /fs/inode.c

Filename:/fs/inode.c
Lines Added:3
Lines Deleted:1
Also changed in: (Previous) 2.4.17-pre7  2.4.17-pre6  2.4.17-pre5  2.4.17-pre3  2.4.17-pre4  2.4.16 
(Following) 2.4.17-rc1  2.4.17-rc2  2.4.17  2.4.18-pre3-ac1  2.4.18-pre3-ac2  2.4.18-pre7-ac1 

Location
[  2.4.17-pre8
  [  fs
     o  inode.c

Patch

diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/fs/inode.c linux/fs/inode.c
--- linux-2.4.16/fs/inode.c   Mon Nov 26 10:35:11 2001
+++ linux/fs/inode.c   Tue Dec  4 19:25:31 2001
@@ -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;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.