Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=12b373ebf05485d4937dd63a00c16f8efeaa79ba
Commit:     12b373ebf05485d4937dd63a00c16f8efeaa79ba
Parent:     2f78e4313afd34a4ded591ec5687843113fbaa01
Author:     Trond Myklebust <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 1 09:56:59 2007 -0400
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 17:19:35 2007 -0400

    NFS: Don't revalidate dentries on directory size or ctime changes
    
    We only need to look at the mtime changes...
    
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
---
 fs/nfs/inode.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 8c53b7e..7fdaaf5 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1015,10 +1015,8 @@ static int nfs_update_inode(struct inode *inode, struct 
nfs_fattr *fattr)
                        nfsi->cache_change_attribute = now;
                }
                /* If ctime has changed we should definitely clear access+acl 
caches */
-               if (!timespec_equal(&inode->i_ctime, &fattr->ctime)) {
+               if (!timespec_equal(&inode->i_ctime, &fattr->ctime))
                        invalid |= NFS_INO_INVALID_ACCESS|NFS_INO_INVALID_ACL;
-                       nfsi->cache_change_attribute = now;
-               }
        } else if (nfsi->change_attr != fattr->change_attr) {
                dprintk("NFS: change_attr change on server for file %s/%ld\n",
                                inode->i_sb->s_id, inode->i_ino);
@@ -1036,7 +1034,6 @@ static int nfs_update_inode(struct inode *inode, struct 
nfs_fattr *fattr)
                        inode->i_size = new_isize;
                        invalid |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA;
                }
-               nfsi->cache_change_attribute = now;
                dprintk("NFS: isize change on server for file %s/%ld\n",
                                inode->i_sb->s_id, inode->i_ino);
        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to