]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Catch a few more cases where we need to renew inode->d_time
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Sat, 8 Jun 2002 10:51:07 +0000 (03:51 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 8 Jun 2002 10:51:07 +0000 (03:51 -0700)
fs/nfs/dir.c:

   - Call nfs_renew_times() when we deliberately create a negative dentry.
     or rename a file.

fs/nfs/dir.c

index ac33270d7293c562254c12ef3b7200f90491ce04..1cbf3a697bda046ee19f1a1b266cad4a1fd5ab6e 100644 (file)
@@ -563,6 +563,8 @@ static void nfs_dentry_iput(struct dentry *dentry, struct inode *inode)
                nfs_complete_unlink(dentry);
                unlock_kernel();
        }
+       /* When creating a negative dentry, we want to renew d_time */
+       nfs_renew_times(dentry);
        iput(inode);
 }
 
@@ -1090,6 +1092,7 @@ out:
                d_rehash(rehash);
        if (!error && !S_ISDIR(old_inode->i_mode))
                d_move(old_dentry, new_dentry);
+       nfs_renew_times(new_dentry);
 
        /* new dentry created? */
        if (dentry)